commit | d6daef95127e41233ac8e2d8472d8c0cd8687d38 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Nov 07 11:04:20 2013 +0300 |
committer | Lee Jones <lee.jones@linaro.org> | Mon Nov 11 11:22:19 2013 +0000 |
tree | 6c7794b5eaced7e3d7d3d1f092d5574917ace27f | |
parent | 0b208e41acf34c133a55a57189af30aa7924e0c6 [diff] |
mfd: pm8921: Potential NULL dereference in pm8921_remove() 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: c013f0a56c56 ('mfd: Add pm8xxx irq support') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>