diff options
| author | Sergey Senozhatsky <[email protected]> | 2022-08-24 12:51:00 +0900 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 20:26:00 -0700 |
| commit | 6d2453c3dbc5f70eafc1c866289a90a1fc57ce18 (patch) | |
| tree | b71c57fa8ff8f75883c1597e31055cfa46b7ed01 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 67e139b02d99496c03bf3b51abad685ab3b49138 (diff) | |
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/[email protected]
Signed-off-by: Sergey Senozhatsky <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions