Skip to content
Commit 879828c6 authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 5afb287a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment