Commit 5725c522 authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by David Stevens
Browse files

UPSTREAM: zram: do not leak page on recompress_store error path

Ensure the page used for local object data is freed on error out path.

Link: https://lkml.kernel.org/r/20250303022425.285971-18-senozhatsky@chromium.org


Fixes: 3f909a60 ("zram: rework recompress target selection strategy")
Signed-off-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Cc: Hillf Danton <hdanton@sina.com>
Cc: Kairui Song <ryncsn@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 5b683d4e)

Bug: 446676432
Change-Id: I628378283bf60d1f09b77cf54fb09cc5a98f6e42
Signed-off-by: default avatarDavid Stevens <stevensd@google.com>
parent daa64269
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment