Commit d31906d0 authored by Marcus Alanen's avatar Marcus Alanen Committed by Jens Axboe

[PATCH] block_loop.c kfree error

Label in wrong place.
parent d27b62f2
......@@ -1070,8 +1070,8 @@ int __init loop_init(void)
out_mem2:
while (i--)
put_disk(disks[i]);
out_mem:
kfree(disks);
out_mem:
kfree(loop_dev);
printk(KERN_ERR "loop: ran out of memory\n");
return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment