UBI: fix error handling in erase worker
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 10:42:10 +0000 (13:42 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:59:09 +0000 (16:59 +0300)
Do not switch to read-only mode in case of -EINTR and some
other obvious cases. Switch to RO mode only when we do not
know what is the error.

Reported-by: Vinit Agnihotri <vinit.agnihotri@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found