From: Dan Carpenter Date: Thu, 7 Nov 2013 08:04:20 +0000 (+0300) Subject: mfd: pm8921: Potential NULL dereference in pm8921_remove() X-Git-Tag: v3.13-rc1~66^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6daef95127e41233ac8e2d8472d8c0cd8687d38;p=pandora-kernel.git 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 Signed-off-by: Lee Jones --- Reading git-diff-tree failed