gpio: gpiolib-devprop: Check chip->parent pointer before dereferencing
authorThor Thayer <tthayer@opensource.altera.com>
Tue, 25 Oct 2016 16:31:23 +0000 (11:31 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Oct 2016 18:23:19 +0000 (20:23 +0200)
commit5a195c6d4ecf43be26ee1c8be6140025832adfd2
tree361a8a073c8d3143c3c291053c045b4b80b4fea4
parentf85522c207ce395fc9c1f6b80a47f211d00914b0
gpio: gpiolib-devprop: Check chip->parent pointer before dereferencing

Confirm the chip->parent is valid before dereferencing because
the parent parameter is optional.

Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-devprop.c