]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: fix use of "VID" vs. "EC" in header self-check
authorBrian Norris <computersforpeace@gmail.com>
Fri, 20 Nov 2015 22:10:54 +0000 (14:10 -0800)
committerRichard Weinberger <richard@nod.at>
Wed, 16 Dec 2015 21:46:26 +0000 (22:46 +0100)
commitcba95cd6bd06d06ebb7497de7e62e016a4dfd5ac
tree76d90def57448d93bf168ebe14c454463e4cbfaa
parent35237cd56b4fee56cff03604c0410542d2b0fdc1
UBI: fix use of "VID" vs. "EC" in header self-check

Looks like a typo, using UBI_EC_HDR_SIZE_CRC (note the "EC") to compute
the CRC for the VID header.

This shouldn't cause any functional change, as both structures are 64
bytes. Verified with:

BUILD_BUG_ON(UBI_VID_HDR_SIZE_CRC != UBI_EC_HDR_SIZE_CRC);

Reported here:
http://lists.infradead.org/pipermail/linux-mtd/2013-September/048570.html

Reported by: Bill Pringlemeir <bpringlemeir@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/io.c