linux/generic: fix block2mtd for 2.6.38
authoracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 24 Feb 2011 19:13:05 +0000 (19:13 +0000)
committeracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 24 Feb 2011 19:13:05 +0000 (19:13 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25704 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic/patches-2.6.38/067-block2mtd_2.6.38_fix.patch [new file with mode: 0644]

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 (file)
index 0000000..74e0a2f
--- /dev/null
@@ -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
This page took 0.0248620000000001 seconds and 4 git commands to generate.