diff options
Diffstat (limited to 'block')
-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 | } |