You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
430 B
11 lines
430 B
--- a/drivers/mtd/devices/block2mtd.c
|
|
+++ b/drivers/mtd/devices/block2mtd.c
|
|
@@ -330,7 +330,7 @@ static int block2mtd_refresh(struct mtd_
|
|
_close_bdev(dev);
|
|
|
|
/* open the whole disk, issue a partition rescan, then */
|
|
- bdev = blkdev_get_by_dev(devt, FMODE_WRITE | FMODE_READ);
|
|
+ bdev = blkdev_get_by_dev(devt, FMODE_WRITE | FMODE_READ, mtd);
|
|
if (!bdev || !bdev->bd_disk)
|
|
err = -EINVAL;
|
|
#ifndef CONFIG_MTD_BLOCK2MTD_MODULE
|
|
|