projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aac1794
)
ubi: fastmap: Don't flush fastmap work on detach
author
Richard Weinberger
<richard@nod.at>
Wed, 17 Jan 2018 22:15:57 +0000
(23:15 +0100)
committer
Richard Weinberger
<richard@nod.at>
Wed, 4 Apr 2018 21:41:44 +0000
(23:41 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/fastmap-wl.c
b/drivers/mtd/ubi/fastmap-wl.c
index
590d967
..
98f7d6b
100644
(file)
--- a/
drivers/mtd/ubi/fastmap-wl.c
+++ b/
drivers/mtd/ubi/fastmap-wl.c
@@
-362,7
+362,6
@@
static void ubi_fastmap_close(struct ubi_device *ubi)
{
int i;
- flush_work(&ubi->fm_work);
return_unused_pool_pebs(ubi, &ubi->fm_pool);
return_unused_pool_pebs(ubi, &ubi->fm_wl_pool);