UBI: fix EBADMSG handling
authorZoltan Sogor <weth@inf.u-szeged.hu>
Wed, 29 Oct 2008 08:50:02 +0000 (09:50 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 6 Nov 2008 09:13:02 +0000 (11:13 +0200)
commitb77bcb07897f1a9cd9d1d78691896dcdb0fd1a22
tree1bc140b0a6b112b78bce4c0afd17f845e84d8fee
parent45beca08dd8b6d6a65c5ffd730af2eac7a2c7a03
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