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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:32:05 +0000 (09:32 +0200)
commit75ee85667473444fe10765850e4edc2727f9da75
tree7cc3efa046997967a296ef406d9c0c7e11843c05
parenta4e98ec002e1c5d1691a2ef8a35c8b5006cdc87e
ubi: fastmap: Don't flush fastmap work on detach

commit 29b7a6fa1ec07e8480b0d9caf635a4498a438bf4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/fastmap-wl.c