From: John Ogness Date: Fri, 21 Jan 2011 14:39:02 +0000 (+0100) Subject: UBI: cleanup LEB start calculations X-Git-Tag: v2.6.39-rc1~422^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8cfe009436f9ab6f4234e1f7c406c231747925c;p=pandora-kernel.git UBI: cleanup LEB start calculations Wrong macro was used in calculating the data offset: UBI_EC_HDR_SIZE instead of UBI_VID_HDR_SIZE. The data offset should be VID header offset + VID header size (aligned to the minimum I/O unit). This was not a bug only because currently UBI_EC_HDR_SIZE and UBI_VID_HDR_SIZE have the same value of 64 bytes. Commit message was amended by Artem. Signed-off-by: John Ogness Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed