UBI: release locks in check_corruption
authorDan Carpenter <error27@gmail.com>
Thu, 18 Nov 2010 03:58:04 +0000 (06:58 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 19 Nov 2010 13:19:40 +0000 (15:19 +0200)
commit1b1d76e2df2a0aa965d6a227db7061d3fff029b1
treec0ebf23becdbe770d9c8e8ab3b8613e5143d4bb3
parente53beacd23d9cb47590da6a7a7f6d417b941a994
UBI: release locks in check_corruption

Commit 45aafd32996e27 "UBI: tighten the corrupted PEB criteria"
introduced some return paths that didn't release the ubi->buf_mutex

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/scan.c