commit | 6b238de189f69dc77d660d4cce62eed15547f4c3 | [log] [tgz] |
---|---|---|
author | Sebastian Siewior <bigeasy@linutronix.de> | Thu Nov 26 21:23:49 2015 +0100 |
committer | Richard Weinberger <richard@nod.at> | Wed Dec 16 22:59:03 2015 +0100 |
tree | bfc45a51a777327cba3d9ed54b18e5b5e6cc0bb2 | |
parent | 1a31b20cd81d5cbc7ec6e24cb08066009a1ca32d [diff] |
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>