Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ubi: fastmap: Don't flush fastmap work on detach

At this point UBI volumes have already been free()'ed and fastmap can no
longer access these data structures.

Reported-by: Martin Townsend <mtownsend1973@gmail.com>
Fixes: 74cdaf24004a ("UBI: Fastmap: Fix memory leaks while closing the WL sub-system")
Cc: stable@vger.kernel.org
Signed-off-by: Richard Weinberger <richard@nod.at>

-1
-1
drivers/mtd/ubi/fastmap-wl.c
··· 362 362 { 363 363 int i; 364 364 365 - flush_work(&ubi->fm_work); 366 365 return_unused_pool_pebs(ubi, &ubi->fm_pool); 367 366 return_unused_pool_pebs(ubi, &ubi->fm_wl_pool); 368 367