Changeset 34093


Ignore:
Timestamp:
2012-11-06T01:48:21+01:00 (5 years ago)
Author:
jogo
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-3.6/400-rootfs_split.patch

    r33911 r34093  
    5656+       int len, ret; 
    5757+ 
    58 +       ret = master->_read(master, offset, sizeof(sb), &len, (void *) &sb); 
     58+       ret = mtd_read(master, offset, sizeof(sb), &len, (void *) &sb); 
    5959+       if (ret || (len != sizeof(sb))) { 
    6060+               printk(KERN_ALERT "split_squashfs: error occured while reading " 
Note: See TracChangeset for help on using the changeset viewer.