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

gpio: xgene: Prevent NULL pointer dereference



platform_get_resource() can return NULL, thus add NULL test 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 fd975a7b
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