]> git.karo-electronics.de Git - karo-tx-linux.git/commit
UBI: fastmap break out of used PEB search
authorBrian Pomerantz <bapper@gmail.com>
Thu, 2 May 2013 00:10:44 +0000 (17:10 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 29 May 2013 13:49:02 +0000 (16:49 +0300)
commit584d4623357db8f79029db76ec2b4953418018f0
tree78181565177075b33c3f225106e7eb25ee8c2750
parent95f9a4d27eadcc1e76c9196e9d90cf41e9bba6ba
UBI: fastmap break out of used PEB search

While searching for PEB matches for each volume in the used PEB list,
the search fails to stop when the PEB is found.  This patch adds
a break in the inner loop to stop the search when it is matched.

Signed-off-by: Brian Pomerantz <bapper@gmail.com>
Acked-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/fastmap.c