From ab0f1978a239ecfea50d680167f0a7308e866937 Mon Sep 17 00:00:00 2001 From: jogo Date: Tue, 6 Nov 2012 00:48:21 +0000 Subject: [PATCH] linux: generic: fix split_squashfs for 3.6 _read expects the retlen to be initialized to zero, which the mtd_read helper does. So fix it by using mtd_read instead of calling _read directly. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34093 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/patches-3.6/400-rootfs_split.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/generic/patches-3.6/400-rootfs_split.patch b/target/linux/generic/patches-3.6/400-rootfs_split.patch index 976f56002..8e61f7786 100644 --- a/target/linux/generic/patches-3.6/400-rootfs_split.patch +++ b/target/linux/generic/patches-3.6/400-rootfs_split.patch @@ -55,7 +55,7 @@ + struct squashfs_super_block sb; + int len, ret; + -+ ret = master->_read(master, offset, sizeof(sb), &len, (void *) &sb); ++ ret = mtd_read(master, offset, sizeof(sb), &len, (void *) &sb); + if (ret || (len != sizeof(sb))) { + printk(KERN_ALERT "split_squashfs: error occured while reading " + "from \"%s\"\n", master->name);