From: Axel Lin Date: Sat, 20 Dec 2014 14:47:07 +0000 (+0800) Subject: gpio: grgpio: Avoid potential NULL pointer dereference X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~290^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=879828c6ade916d13a5187eb02546899c2cd496c;p=pandora-kernel.git gpio: grgpio: Avoid potential NULL pointer dereference irqmap is optional property, so priv->domain can be NULL if !irqmap. Thus add NULL test for priv->domain before calling irq_domain_remove() to prevent NULL pointer dereference. Signed-off-by: Axel Lin Signed-off-by: Linus Walleij --- Reading git-diff-tree failed