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) ...@@ -4409,6 +4409,7 @@ int __init floppy_init(void)
out: out:
for (i=0; i<N_DRIVE; i++) for (i=0; i<N_DRIVE; i++)
put_disk(disks[i]); put_disk(disks[i]);
devfs_remove("floppy");
return err; return err;
Enomem: 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