diff options
author | Alexandros C. Couloumbis <alex@ozo.com> | 2011-02-24 19:13:05 +0000 |
---|---|---|
committer | Alexandros C. Couloumbis <alex@ozo.com> | 2011-02-24 19:13:05 +0000 |
commit | 5a8a9a0e23f1467eaeaef475a8bea0542e9ecad8 (patch) | |
tree | 11213024e0035b65221021ee1eeeb98560495179 /target | |
parent | d6b792f659ed641d2e3631d0df875a203a7fb5c9 (diff) | |
download | upstream-5a8a9a0e23f1467eaeaef475a8bea0542e9ecad8.tar.gz upstream-5a8a9a0e23f1467eaeaef475a8bea0542e9ecad8.tar.bz2 upstream-5a8a9a0e23f1467eaeaef475a8bea0542e9ecad8.zip |
linux/generic: fix block2mtd for 2.6.38
SVN-Revision: 25704
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/patches-2.6.38/067-block2mtd_2.6.38_fix.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.38/067-block2mtd_2.6.38_fix.patch b/target/linux/generic/patches-2.6.38/067-block2mtd_2.6.38_fix.patch new file mode 100644 index 0000000000..74e0a2f3e5 --- /dev/null +++ b/target/linux/generic/patches-2.6.38/067-block2mtd_2.6.38_fix.patch @@ -0,0 +1,11 @@ +--- 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 |