linux/drivers/block/zram
Dominique Martinet 677294e4da zram: check comp is non-NULL before calling comp_destroy
This is a pre-requisite for the backport of commit 74363ec674 ("zram:
fix uninitialized ZRAM not releasing backing device"), which has been
implemented differently in commit 7ac07a26de ("zram: preparation for
multi-zcomp support") upstream.

We only need to ensure that zcomp_destroy is not called with a NULL
comp, so add this check as the other commit cannot be backported easily.

Stable-dep-of: 74363ec674 ("zram: fix uninitialized ZRAM not releasing backing device")
Link: https://lore.kernel.org/Z3ytcILx4S1v_ueJ@codewreck.org
Suggested-by: Kairui Song <kasong@tencent.com>
Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-01-09 13:30:07 +01:00
..
Kconfig zram: fix Kconfig dependency warning 2022-05-25 10:47:47 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
zcomp.c zram: do not lookup algorithm in backends table 2022-07-03 18:08:50 -07:00
zcomp.h zram: Use local lock to protect per-CPU data 2020-05-28 10:31:10 +02:00
zram_drv.c zram: check comp is non-NULL before calling comp_destroy 2025-01-09 13:30:07 +01:00
zram_drv.h zram: do not waste zram_table_entry flags bits 2022-10-03 14:03:09 -07:00