Root/target/linux/xburst/patches-2.6.37/901-ubi-Read-only-the-vid-header-instead-of-the-whole-pa.patch

1--- a/drivers/mtd/ubi/io.c
2+++ b/drivers/mtd/ubi/io.c
3@@ -995,7 +995,7 @@ int ubi_io_read_vid_hdr(struct ubi_devic
4 
5     p = (char *)vid_hdr - ubi->vid_hdr_shift;
6     read_err = ubi_io_read(ubi, p, pnum, ubi->vid_hdr_aloffset,
7- ubi->vid_hdr_alsize);
8+ UBI_VID_HDR_SIZE + ubi->vid_hdr_shift);
9     if (read_err && read_err != UBI_IO_BITFLIPS && read_err != -EBADMSG)
10         return read_err;
11 
12

Archive Download this file



interactive