This is a note to let you know that I've just added the patch titled

    ext4: add missing kfree() on error return path in add_new_gdb()

to the 3.0-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ext4-add-missing-kfree-on-error-return-path-in-add_new_gdb.patch
and it can be found in the queue-3.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From c49bafa3842751b8955a962859f42d307673d75d Mon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Sat, 30 Jul 2011 12:58:41 -0400
Subject: ext4: add missing kfree() on error return path in add_new_gdb()

From: Dan Carpenter <[email protected]>

commit c49bafa3842751b8955a962859f42d307673d75d upstream.

We added some more error handling in b40971426a "ext4: add error
checking to calls to ext4_handle_dirty_metadata()".  But we need to
call kfree() as well to avoid a memory leak.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Signed-off-by: Jeff Mahoney <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>


---
 fs/ext4/resize.c |    1 +
 1 file changed, 1 insertion(+)

--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -499,6 +499,7 @@ static int add_new_gdb(handle_t *handle,
        return err;
 
 exit_inode:
+       kfree(n_group_desc);
        /* ext4_handle_release_buffer(handle, iloc.bh); */
        brelse(iloc.bh);
 exit_dindj:


Patches currently in stable-queue which might be from [email protected] are

queue-3.0/ext4-add-missing-kfree-on-error-return-path-in-add_new_gdb.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to