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)
'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>

No differences found