gpio: zynq: Check return value of irq_get_irq_data
authorSrinivas Neeli <srinivas.neeli@xilinx.com>
Fri, 9 Apr 2021 14:08:06 +0000 (19:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:43 +0000 (16:05 +0200)
commitb3d3a2466e749168410f92c574d0d0cacd98411b
tree6d3f82f2a40612ffa828cc5681aa49545de23b70
parent3d2b0818daa421b1619cf3bf5f2b2a6788cebcf2
gpio: zynq: Check return value of irq_get_irq_data

[ Upstream commit 35d7b72a632bc7afb15356f44005554af8697904 ]

In two different instances the return value of "irq_get_irq_data"
API was neither captured nor checked.
Fixed it by capturing the return value and then checking for any error.

Addresses-Coverity: "returned_null"
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-zynq.c