diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-27 17:21:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-27 17:21:19 -0500 |
commit | 9c8ff4f4dac189e4111238d54c2b12e7837f4818 (patch) | |
tree | 70bd1b82721b56e17ebdbb11b618c47864146061 /block/genhd.c | |
parent | 86e67a07d4dc8cd40454698f2abb972fced06910 (diff) | |
parent | 645a8d94629fd812a220d54876339a1ddafd9bc2 (diff) |
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block:
scatterlist: add more safeguards
Revert "ll_rw_blk: temporarily enable max_segments tweaking"
mmc: Add missing sg_init_table() call
block: Fix memory leak in alloc_disk_node()
alpha: fix sg_page breakage
blktrace: Make sure BLKTRACETEARDOWN does the full cleanup.
Diffstat (limited to 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/genhd.c b/block/genhd.c index e609996f2e76..f2ac914160d1 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -715,6 +715,7 @@ struct gendisk *alloc_disk_node(int minors, int node_id) | |||
715 | disk->part = kmalloc_node(size, | 715 | disk->part = kmalloc_node(size, |
716 | GFP_KERNEL | __GFP_ZERO, node_id); | 716 | GFP_KERNEL | __GFP_ZERO, node_id); |
717 | if (!disk->part) { | 717 | if (!disk->part) { |
718 | free_disk_stats(disk); | ||
718 | kfree(disk); | 719 | kfree(disk); |
719 | return NULL; | 720 | return NULL; |
720 | } | 721 | } |