[PATCH 0/2] zram: fix zram issues reported by sashiko

From: Sergey Senozhatsky

Date: Tue Jul 28 2026 - 23:59:41 EST


Sashiko drove by and reported [1] a couple of zram issues:
a possible BUG_ON() in zlib code due to missing winbits range
validation and one possible NULL-ptr dereference in zcomp.
Both are low risk yet still worth fixing.

[1] https://sashiko.dev/#/patchset/20260728092935.31139-1-haoqinhuang7@xxxxxxxxx

Sergey Senozhatsky (2):
zram: set default primary compressor in zram_destroy_comps()
zram: validate deflate params

drivers/block/zram/backend_deflate.c | 8 +++++++-
drivers/block/zram/zram_drv.c | 3 +--
2 files changed, 8 insertions(+), 3 deletions(-)

--
2.55.0.508.g3f0d502094-goog