aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-05-23 21:05:19 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-05-23 21:05:19 +0000
commit831c677efca10647ef8115596d16e967e5148227 (patch)
tree49e768d2e0a3bbed254faec243fdbdbc667a685a /target/linux/generic
parente4a0f5e8e36f494a35ed6fc491ff6ee68e8c713d (diff)
downloadupstream-831c677efca10647ef8115596d16e967e5148227.tar.gz
upstream-831c677efca10647ef8115596d16e967e5148227.tar.bz2
upstream-831c677efca10647ef8115596d16e967e5148227.zip
linux/3.3: avoid recursive calling of mtd_writev in the block2mtd driver
Should fix #11513. Tested with the x86/generic squashfs image within a VM. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31841 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/patches-3.3/443-block2mtd-avoid-recursive-call-of-mtd_writev.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.3/443-block2mtd-avoid-recursive-call-of-mtd_writev.patch b/target/linux/generic/patches-3.3/443-block2mtd-avoid-recursive-call-of-mtd_writev.patch
new file mode 100644
index 0000000000..0ce9368f91
--- /dev/null
+++ b/target/linux/generic/patches-3.3/443-block2mtd-avoid-recursive-call-of-mtd_writev.patch
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/block2mtd.c
++++ b/drivers/mtd/devices/block2mtd.c
+@@ -388,7 +388,6 @@ static struct block2mtd_dev *add_device(
+ dev->mtd.flags = MTD_CAP_RAM;
+ dev->mtd.erase = block2mtd_erase;
+ dev->mtd.write = block2mtd_write;
+- dev->mtd.writev = mtd_writev;
+ dev->mtd.sync = block2mtd_sync;
+ dev->mtd.read = block2mtd_read;
+ dev->mtd.priv = dev;