UBI: Fastmap: Fix leb_count unbalance
authorRichard Weinberger <richard@nod.at>
Fri, 24 Oct 2014 13:22:05 +0000 (15:22 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 26 Mar 2015 21:46:00 +0000 (22:46 +0100)
commitad3d6a05ee45eebf68ff08da0d3f86251b530a27
tree6b56464c8b10233c0e70b30e8cfe1c371e62fad6
parent68e3226bd4e05c4be1f6286e4e708e1163ffa092
UBI: Fastmap: Fix leb_count unbalance

If a LEB is unmapped we have to decrement leb_count as well.

Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap.c