Commit 66c37726 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] floppy_init fix

From: Andrey Borzenkov <arvidjaar@mail.ru>

The floppy driver doesn't remove /dev/floppy when floppy_init fails.
parent 63d5d4f1
......@@ -4409,6 +4409,7 @@ int __init floppy_init(void)
out:
for (i=0; i<N_DRIVE; i++)
put_disk(disks[i]);
devfs_remove("floppy");
return err;
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