Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ea21cbef authored by Minchan Kim's avatar Minchan Kim Committed by Daniel Rosenberg
Browse files

zram: avoid null access when fail to alloc meta



(cherry pick from commit db5d711e2db776f18219b033e5dc4fb7e4264dd7)

zram_meta_alloc could fail so caller should check it.  Otherwise, your
system will hang.

Signed-off-by: default avatarMinchan Kim <minchan@kernel.org>
Acked-by: default avatarJerome Marchand <jmarchan@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Bug: 24810447
Change-Id: Iba3a0fb8b26c5d9964b7716bfee1844a3896088d
parent 4731d38e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment