UBI: handle zero-length case
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 24 Jan 2008 15:56:14 +0000 (17:56 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 25 Jan 2008 14:41:25 +0000 (16:41 +0200)
commit60c031531a85b3580f66c2530f9b2802adcad4df
treef3d9211a948233f23f8e193af951776024d6aa29
parent1b68d0eea5daddc762c54bf02154f4ad607d9ce8
UBI: handle zero-length case

ubi_eba_atomic_leb_change() has to just map the LEB to a free PEB
if data length is zero.

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