]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
gpio: pch: check the return value of irq_alloc_generic_chip()
authorBartosz Golaszewski <brgl@bgdev.pl>
Thu, 25 May 2017 08:37:36 +0000 (10:37 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 11:33:01 +0000 (13:33 +0200)
commit09445a103eb4e6a0b881056c1dc5f4ca8a186671
treef0eb29ed0d704818d5c139408df0656e11d178c9
parentc7f5326fb433d826de215e894918edfc4e45cc70
gpio: pch: 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-pch.c