]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: check if we are in RO mode in the erase routine
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 18 Mar 2011 16:11:42 +0000 (18:11 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 5 Apr 2011 08:08:58 +0000 (11:08 +0300)
commitdb93c1c751a968b1fba7615f5d6e6fe8aff3930d
treed383315c70461be6e6366c6e8142db95e113a12b
parent736a585ada6b61d7affd0e86982de1601e15456b
UBI: check if we are in RO mode in the erase routine

'do_sync_erase()' has to check whether we are in R/O mode before
erasing the PEB. This patch adds the check and while on it, adds an
assertion which validates the 'pnum' argument, as well as removes
a check which is always true because it has already been done
few lines before.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/io.c