]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/mchp-eic: Fix return value check in mchp_eic_init()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 25 Oct 2021 05:00:55 +0000 (13:00 +0800)
committerMarc Zyngier <maz@kernel.org>
Mon, 25 Oct 2021 08:02:18 +0000 (09:02 +0100)
commita8c1f9294d48015f8819abbeff9ac8646a26f027
treeffa616237ded10e19da33c9f3349e89907c2bc89
parente8c9eb0877e5d193598dbdd9a5d1043a9370c384
irqchip/mchp-eic: Fix return value check in mchp_eic_init()

In case of error, the function of_iomap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211025050055.1129845-1-yangyingliang@huawei.com
drivers/irqchip/irq-mchp-eic.c