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

Skip to content
Unverified Commit 377e96ba authored by Dan Carpenter's avatar Dan Carpenter Committed by Harsh Shandilya
Browse files

mfd: pm8921: Potential NULL dereference in pm8921_remove()



commit d6daef95127e41233ac8e2d8472d8c0cd8687d38 upstream.

We assume that "pmic" could be NULL and then dereference it two lines
later.  I fix this by moving the dereference inside the NULL check.

Fixes: c013f0a5 ('mfd: Add pm8xxx irq support')

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
[ @MSF-Jarvis: Resolve conflicts ]
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>

Change-Id: Ie2b05029ebb333f2ccb5e608561fbcd96e436de6
parent 2b6cb1c0
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