The patch titled
block: fix memory leak in alloc_disk_node()
has been added to the -mm tree. Its filename is
block-fix-memory-leak-in-alloc_disk_node.patch
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
------------------------------------------------------
Subject: block: fix memory leak in alloc_disk_node()
From: Jerome Marchand <[EMAIL PROTECTED]>
Fix a memory leak in alloc_disk_node(). Don't forget to free 'dkstats'
when the allocation of 'part' failed.
Signed-off-by: Jerome Marchand <[EMAIL PROTECTED]>
Cc: Jens Axboe <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
block/genhd.c | 1 +
1 file changed, 1 insertion(+)
diff -puN block/genhd.c~block-fix-memory-leak-in-alloc_disk_node block/genhd.c
--- a/block/genhd.c~block-fix-memory-leak-in-alloc_disk_node
+++ a/block/genhd.c
@@ -713,6 +713,7 @@ struct gendisk *alloc_disk_node(int mino
disk->part = kmalloc_node(size,
GFP_KERNEL | __GFP_ZERO, node_id);
if (!disk->part) {
+ free_disk_stats(disk);
kfree(disk);
return NULL;
}
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
block-fix-memory-leak-in-alloc_disk_node.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html