]> git.hungrycats.org Git - linux/commitdiff
[PATCH] floppy minor number fix
authorAndrew Morton <akpm@osdl.org>
Thu, 3 Jun 2004 00:59:32 +0000 (17:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 00:59:32 +0000 (17:59 -0700)
From: Paul Slootman <paul+nospam@wurtel.net>

Correctly set the floppy disk's first minor.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/floppy.c

index f1cc334093b75923971eb2cedd22cb03308b75e6..70375a056fa11fe2c972b3a7768394fcaebb5a1e 100644 (file)
@@ -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);