]> git.ipfire.org Git - people/arne_f/kernel.git/commit
UBI: Fix double free after do_sync_erase()
authorRichard Weinberger <richard@nod.at>
Thu, 6 Nov 2014 15:47:49 +0000 (16:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2015 14:59:30 +0000 (06:59 -0800)
commite69001acba6725963d0bc5476ec380f56bd65932
tree262e8cfe79b7e0a6a76eeb912db87fe44fb6957a
parent03b5def086df33c93fec035768ea864488c395b0
UBI: Fix double free after do_sync_erase()

commit aa5ad3b6eb8feb2399a5d26c8fb0060561bb9534 upstream.

If the erase worker is unable to erase a PEB it will
free the ubi_wl_entry itself.
The failing ubi_wl_entry must not free()'d again after
do_sync_erase() returns.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/wl.c