]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:32 +0000 (21:36 -0400)
commit57f6a9712fcd8f88f3dab816baaea7b695327dcd
treef9c151500c7d10ea4e324c7e9647710aab16d136
parent3e913fca69feb7279e0a8dd71988fe06d2019045
ubi: fastmap: Don't flush fastmap work on detach

[ Upstream commit 29b7a6fa1ec07e8480b0d9caf635a4498a438bf4 ]

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: Sasha Levin <alexander.levin@microsoft.com>
drivers/mtd/ubi/fastmap-wl.c