- block-fix-memory-leak-in-alloc_disk_node.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     block: fix memory leak in alloc_disk_node()
has been removed from the -mm tree.  Its filename was
     block-fix-memory-leak-in-alloc_disk_node.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: block: fix memory leak in alloc_disk_node()
From: Jerome Marchand <jmarchan@xxxxxxxxxx>

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 <jmarchan@xxxxxxxxxx>
Cc: Jens Axboe <jens.axboe@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 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 jmarchan@xxxxxxxxxx are

origin.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux