]> www.infradead.org Git - users/jedix/linux-maple.git/commit
zram: check that backends array has at least one backend
authorSergey Senozhatsky <senozhatsky@chromium.org>
Fri, 12 Jul 2024 05:18:23 +0000 (14:18 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:29 +0000 (17:52 -0700)
commite60c92622a82b128b151fed18f7b26c0ff4ff638
treee9c0da74d7369f7a83c808bf7a585eecf06af7c8
parent9702f121c9c5d563580d99d1d60b8ca02854f3b4
zram: check that backends array has at least one backend

Make sure that backends array has anything apart from the
sentinel NULL value.

We also select LZO_BACKEND if none backends were selected.

Link: https://lkml.kernel.org/r/20240712051850.484318-13-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Nick Terrell <terrelln@fb.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/Kconfig
drivers/block/zram/zcomp.c