mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 22:45:31 +02:00
12 lines
390 B
Diff
12 lines
390 B
Diff
|
--- a/drivers/mtd/ubi/io.c
|
||
|
+++ b/drivers/mtd/ubi/io.c
|
||
|
@@ -995,7 +995,7 @@ int ubi_io_read_vid_hdr(struct ubi_devic
|
||
|
|
||
|
p = (char *)vid_hdr - ubi->vid_hdr_shift;
|
||
|
read_err = ubi_io_read(ubi, p, pnum, ubi->vid_hdr_aloffset,
|
||
|
- ubi->vid_hdr_alsize);
|
||
|
+ UBI_VID_HDR_SIZE + ubi->vid_hdr_shift);
|
||
|
if (read_err && read_err != UBI_IO_BITFLIPS && read_err != -EBADMSG)
|
||
|
return read_err;
|
||
|
|