irqchip/mips-gic: Check the return value of ioremap() in gic_of_init()
authorWilliam Dean <williamsukatube@163.com>
Sat, 23 Jul 2022 10:01:28 +0000 (18:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:01 +0000 (14:23 +0200)
commitf0d66189d1618c7af3b040bb44af277e492ce61b
tree0b31d8c9a5e911829d310ffffe75206d06da0cc0
parentf066e015821cbd697d129befc74f822691321d70
irqchip/mips-gic: Check the return value of ioremap() in gic_of_init()

[ Upstream commit 71349cc85e5930dce78ed87084dee098eba24b59 ]

The function ioremap() in gic_of_init() can fail, so
its return value should be checked.

Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: William Dean <williamsukatube@163.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220723100128.2964304-1-williamsukatube@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-mips-gic.c