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

Skip to content
Commit 7d4e11de authored by Rashika Kheria's avatar Rashika Kheria Committed by Greg Hackmann
Browse files

BACKPORT: Staging: zram: Fix variable dereferenced before check



(cherry pick from commit 59d3fe540454dd8fc48d4eda44e200f9c98bef10)

This patch fixes the following Smatch warning in zram_drv.c-
drivers/staging/zram/zram_drv.c:899
destroy_device() warn: variable dereferenced before check 'zram->disk' (see line 896)

Bug: 25951511

Change-Id: I4a7e21cee59bb2d3163a010cce62c859d830cd1a
Acked-by: default avatarMinchan Kim <minchan@kernel.org>
Acked-by: default avatarJerome Marchand <jmarchan@redhat.com>
Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 24d01080
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