From 1e1c0a5405372075a9cccad7c6811139257f0a68 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 23 May 2012 21:05:19 +0000 Subject: 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. SVN-Revision: 31841 --- .../443-block2mtd-avoid-recursive-call-of-mtd_writev.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 target/linux/generic/patches-3.3/443-block2mtd-avoid-recursive-call-of-mtd_writev.patch 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; -- cgit v1.2.3