gpio: ml-ioh: check the return value of irq_alloc_generic_chip()
authorBartosz Golaszewski <brgl@bgdev.pl>
Thu, 25 May 2017 08:37:38 +0000 (10:37 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 11:34:22 +0000 (13:34 +0200)
commite3fe07e03e61c8483e8ffe804108787192177a76
tree79134dd9f6b0f6111f4969f0cc6d711015087b29
parentd76e8babe420edbf9f9f9c78e42ef01f0e62dc07
gpio: ml-ioh: check the return value of irq_alloc_generic_chip()

This function can fail, so check the return value before dereferencing
the returned pointer.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ml-ioh.c