X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=block%2Fgenhd.c;h=f2ac914160d1a96e7258bd86949caef3dcdec6a3;hb=bd3adca52bc43b72c75db3e4c7809d47923b154c;hp=e609996f2e766d7009d5984aa8b4fbc29c813bbf;hpb=7eff2e7a8b65c25920207324e56611150eb1cd9a;p=linux-2.6 diff --git a/block/genhd.c b/block/genhd.c index e609996f2e..f2ac914160 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -715,6 +715,7 @@ struct gendisk *alloc_disk_node(int minors, int node_id) disk->part = kmalloc_node(size, GFP_KERNEL | __GFP_ZERO, node_id); if (!disk->part) { + free_disk_stats(disk); kfree(disk); return NULL; }