This is a note to let you know that I've just added the patch titled
UBIFS: fix memory leak on error path
to the 2.6.33-longterm tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/longterm/longterm-queue-2.6.33.git;a=summary
The filename of the patch is:
ubifs-fix-memory-leak-on-error-path.patch
and it can be found in the queue-2.6.33 subdirectory.
If you, or anyone else, feels it should not be added to the 2.6.33 longterm
tree,
please let <[email protected]> know about it.
>From 812eb258311f89bcd664a34a620f249d54a2cd83 Mon Sep 17 00:00:00 2001
From: Artem Bityutskiy <[email protected]>
Date: Tue, 31 May 2011 08:40:40 +0300
Subject: UBIFS: fix memory leak on error path
From: Artem Bityutskiy <[email protected]>
commit 812eb258311f89bcd664a34a620f249d54a2cd83 upstream.
UBIFS leaks memory on error path in 'ubifs_jnl_update()' in case of write
failure because it forgets to free the 'struct ubifs_dent_node *dent' object.
Although the object is small, the alignment can make it large - e.g., 2KiB
if the min. I/O unit is 2KiB.
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
fs/ubifs/journal.c | 1 +
1 file changed, 1 insertion(+)
--- a/fs/ubifs/journal.c
+++ b/fs/ubifs/journal.c
@@ -665,6 +665,7 @@ out_free:
out_release:
release_head(c, BASEHD);
+ kfree(dent);
out_ro:
ubifs_ro_mode(c, err);
if (last_reference)
Patches currently in longterm-queue-2.6.33 which might be from
[email protected] are
/home/gregkh/linux/longterm/longterm-queue-2.6.33/queue-2.6.33/ubifs-fix-memory-leak-on-error-path.patch
/home/gregkh/linux/longterm/longterm-queue-2.6.33/queue-2.6.33/ubifs-fix-a-rare-memory-leak-in-ro-to-rw-remounting-path.patch
/home/gregkh/linux/longterm/longterm-queue-2.6.33/queue-2.6.33/ubifs-fix-shrinker-object-count-reports.patch
/home/gregkh/linux/longterm/longterm-queue-2.6.33/queue-2.6.33/mtd-mtdconcat-fix-nand-oob-write.patch
/home/gregkh/linux/longterm/longterm-queue-2.6.33/queue-2.6.33/mtd-return-badblockbits-back.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable