mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
74363ec674
Setting backing device is done before ZRAM initialization. If we set the
backing device, then remove the ZRAM module without initializing the
device, the backing device reference will be leaked and the device will be
hold forever.
Fix this by always reset the ZRAM fully on rmmod or reset store.
Link: https://lkml.kernel.org/r/20241209165717.94215-3-ryncsn@gmail.com
Fixes:
|
||
---|---|---|
.. | ||
backend_842.c | ||
backend_842.h | ||
backend_deflate.c | ||
backend_deflate.h | ||
backend_lz4.c | ||
backend_lz4.h | ||
backend_lz4hc.c | ||
backend_lz4hc.h | ||
backend_lzo.c | ||
backend_lzo.h | ||
backend_lzorle.c | ||
backend_lzorle.h | ||
backend_zstd.c | ||
backend_zstd.h | ||
Kconfig | ||
Makefile | ||
zcomp.c | ||
zcomp.h | ||
zram_drv.c | ||
zram_drv.h |