UBI: fix EBADMSG handling
authorZoltan Sogor <weth@inf.u-szeged.hu>
Wed, 29 Oct 2008 08:50:02 +0000 (09:50 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 17 Jul 2009 13:04:08 +0000 (16:04 +0300)
commit9f86c757100e40e871c561e746fca957bc54210a
treebce3d598ef248ca925ee22fc7db19ff860a255b6
parent8841f19ccfafb2de3fedb1d1c488f9823cffdd46
UBI: fix EBADMSG handling

'ubi_io_read_data()' may return EBADMSG in case of an ECC error,
and we should not panic because of this. We have CRC32 checksum
and may check the data. So just ignore the EBADMSG error.

This patch also fixes a minor spelling error at the same time.

Signed-off-by: Zoltan Sogor <weth@inf.u-szeged.hu>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/scan.c