Commit ce247d90 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] floppy minor number fix

From: Paul Slootman <paul+nospam@wurtel.net>

Correctly set the floppy disk's first minor.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 863dacdd
......@@ -4238,7 +4238,7 @@ int __init floppy_init(void)
}
disks[dr]->major = FLOPPY_MAJOR;
disks[dr]->first_minor = TOMINOR(i);
disks[dr]->first_minor = TOMINOR(dr);
disks[dr]->fops = &floppy_fops;
sprintf(disks[dr]->disk_name, "fd%d", dr);
......
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