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. SVN-Revision: 34093
This commit is contained in:
parent
5bc7d81a20
commit
0722fd9c63
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@
|
||||||
+ struct squashfs_super_block sb;
|
+ struct squashfs_super_block sb;
|
||||||
+ int len, ret;
|
+ 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))) {
|
+ if (ret || (len != sizeof(sb))) {
|
||||||
+ printk(KERN_ALERT "split_squashfs: error occured while reading "
|
+ printk(KERN_ALERT "split_squashfs: error occured while reading "
|
||||||
+ "from \"%s\"\n", master->name);
|
+ "from \"%s\"\n", master->name);
|
||||||
|
|
Loading…
Reference in a new issue