Commit 890b6a7a authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] large dev_t - second series (2/15)

	floppy98 ->probe() forgot to set *part to 0; fixed.
parent b9e8bb61
......@@ -4249,6 +4249,7 @@ static struct kobject *floppy_find(dev_t dev, int *part, void *data)
return NULL;
if (((*part>>2) & 0x1f) >= NUMBER(floppy_type))
return NULL;
*part = 0;
return get_disk(disks[drive]);
}
......
......@@ -73,10 +73,9 @@ int nec98_partition(struct parsed_partitions *state, struct block_device *bdev)
const struct nec98_partition *part;
unsigned char *data;
int sector_size = bdev_hardsect_size(bdev);
int major = MAJOR(bdev->bd_dev);
if (ioctl_by_bdev(bdev, HDIO_GETGEO, (unsigned long)&geo) != 0) {
printk(" unsupported disk (major = %u)\n", major);
printk(" unsupported disk (%s)\n", bdev->bd_disk->disk_name);
return 0;
}
......
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