ubi: fastmap: Don't flush fastmap work on detach
authorRichard Weinberger <richard@nod.at>
Wed, 17 Jan 2018 22:15:57 +0000 (23:15 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 4 Apr 2018 21:41:44 +0000 (23:41 +0200)
commit29b7a6fa1ec07e8480b0d9caf635a4498a438bf4
tree80a40001a023c50400bfef7f9325c6743c53b330
parentaac17948a7ce01fb60b9ee6cf902967a47b3ce26
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>
drivers/mtd/ubi/fastmap-wl.c