]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:28:26 +0000 (14:28 -0800)
commit5b33b092fd14b468a976cd9c7a560cccd23fe4a5
tree5b8bc43309636aa16d842b0f982a88190e89b826
parentb08e24a592355bc3ed77d4cdb02abd976537b238
mtd: ubi: don't leak e if schedule_erase() fails

commit 6b238de189f69dc77d660d4cce62eed15547f4c3 upstream.

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.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/wl.c