Commit 80e65692 authored by Phillip Lougher's avatar Phillip Lougher Committed by Lecopzer Chen
Browse files

UPSTREAM: squashfs: don't call kmalloc in decompressors

The decompressors may be called while in an atomic section.  So move the
kmalloc() out of this path, and into the "page actor" init function.

This fixes a regression introduced by commit
f268eedd ("squashfs: extend "page actor" to handle missing pages")

Link: https://lkml.kernel.org/r/20220822215430.15933-1-phillip@squashfs.org.uk


Fixes: f268eedd ("squashfs: extend "page actor" to handle missing pages")
Reported-by: default avatarChris Murphy <lists@colorremedies.com>
Signed-off-by: default avatarPhillip Lougher <phillip@squashfs.org.uk>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>

Bug: 290900323
(cherry picked from commit 1f13dff0)
Change-Id: I1363aff27964ab2c7753630e5b7501dc9db8bb00
Signed-off-by: default avatarLecopzer Chen <lecopzer.chen@mediatek.com>
parent 401371c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment