aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorSergey Senozhatsky <[email protected]>2024-09-11 02:54:56 +0000
committerAndrew Morton <[email protected]>2024-09-17 08:07:01 +0000
commit684826f8271ad97580b138b9ffd462005e470b99 (patch)
treed528a63dc09e5d46eb3dbadc8f72804f25cf5403 /rust/helpers/helpers.c
parentuprobes: turn xol_area->pages[2] into xol_area->page (diff)
downloadkernel-684826f8271ad97580b138b9ffd462005e470b99.tar.gz
kernel-684826f8271ad97580b138b9ffd462005e470b99.zip
zram: free secondary algorithms names
We need to kfree() secondary algorithms names when reset zram device that had multi-streams, otherwise we leak memory. [[email protected]: kfree(NULL) is legal] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Fixes: 001d92735701 ("zram: add recompression algorithm sysfs knob") Signed-off-by: Sergey Senozhatsky <[email protected]> Cc: Minchan Kim <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions