diff options
author | Sebastian Siewior <bigeasy@linutronix.de> | 2015-11-26 21:23:49 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-12-16 22:59:03 +0100 |
commit | 6b238de189f69dc77d660d4cce62eed15547f4c3 (patch) | |
tree | bfc45a51a777327cba3d9ed54b18e5b5e6cc0bb2 /drivers/lguest | |
parent | mtd: ubi: fixup error correction in do_sync_erase() (diff) | |
download | linux-6b238de189f69dc77d660d4cce62eed15547f4c3.tar.xz linux-6b238de189f69dc77d660d4cce62eed15547f4c3.zip |
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>
Diffstat (limited to 'drivers/lguest')
0 files changed, 0 insertions, 0 deletions