gpio: sta2x11: check the return value of irq_alloc_generic_chip()
authorBartosz Golaszewski <brgl@bgdev.pl>
Thu, 25 May 2017 08:37:37 +0000 (10:37 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 11:33:42 +0000 (13:33 +0200)
commitd76e8babe420edbf9f9f9c78e42ef01f0e62dc07
tree23d83d6663f192c2e2189b6a2f94cb3ca0c1b7c2
parent09445a103eb4e6a0b881056c1dc5f4ca8a186671
gpio: sta2x11: 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-sta2x11.c