]> git.baikalelectronics.ru Git - 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)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Nov 2014 11:42:43 +0000 (13:42 +0200)
commit5453f2ceb4fd0e8086088b835884c37c85247e06
tree02354b3ea14e9d5aad2b543ffc9ea0b320298de0
parent0bb0ca40a33951ccb8789baac74aece66ab2b614
UBI: Fix double free after do_sync_erase()

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/wl.c