Skip to content

Commit bf3fbf5

Browse files
richardweinbergergregkh
authored andcommitted
ubi: fastmap: Don't flush fastmap work on detach
commit 29b7a6f upstream. At this point UBI volumes have already been free()'ed and fastmap can no longer access these data structures. Reported-by: Martin Townsend <[email protected]> Fixes: 74cdaf2 ("UBI: Fastmap: Fix memory leaks while closing the WL sub-system") Cc: [email protected] Signed-off-by: Richard Weinberger <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 09844df commit bf3fbf5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/mtd/ubi/fastmap-wl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ static void ubi_fastmap_close(struct ubi_device *ubi)
362362
{
363363
int i;
364364

365-
flush_work(&ubi->fm_work);
366365
return_unused_pool_pebs(ubi, &ubi->fm_pool);
367366
return_unused_pool_pebs(ubi, &ubi->fm_wl_pool);
368367

0 commit comments

Comments
 (0)