mtd: ubi: don't leak e if schedule_erase() fails
authorSebastian Siewior <bigeasy@linutronix.de>
Thu, 26 Nov 2015 20:23:49 +0000 (21:23 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 16 Dec 2015 21:59:03 +0000 (22:59 +0100)
commit6b238de189f69dc77d660d4cce62eed15547f4c3
treebfc45a51a777327cba3d9ed54b18e5b5e6cc0bb2
parent1a31b20cd81d5cbc7ec6e24cb08066009a1ca32d
mtd: ubi: don't leak e if schedule_erase() fails

If __erase_worker() fails to erase the EB and schedule_erase() fails as
well to do anything about it then we go RO. But that is not a reason to
leak the e argument here. Therefore clean up e.

Cc: <stable@vger.kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/wl.c