diff options
author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2022-08-24 05:51:00 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-12 05:26:00 +0200 |
commit | 6d2453c3dbc5f70eafc1c866289a90a1fc57ce18 (patch) | |
tree | b71c57fa8ff8f75883c1597e31055cfa46b7ed01 /mm/Kconfig | |
parent | mm/gup.c: refactor check_and_migrate_movable_pages() (diff) | |
download | linux-6d2453c3dbc5f70eafc1c866289a90a1fc57ce18.tar.xz linux-6d2453c3dbc5f70eafc1c866289a90a1fc57ce18.zip |
drivers/block/zram/zram_drv.c: do not keep dangling zcomp pointer after zram reset
We do all reset operations under write lock, so we don't need to save
->disksize and ->comp to stack variables. Another thing is that ->comp is
freed during zram reset, but comp pointer is not NULL-ed, so zram keeps
the freed pointer value.
Link: https://lkml.kernel.org/r/20220824035100.971816-1-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/Kconfig')
0 files changed, 0 insertions, 0 deletions