]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/ompic: fix return value check in ompic_of_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 2 Jan 2018 11:47:19 +0000 (11:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Apr 2018 10:31:06 +0000 (12:31 +0200)
commitc97d465dadddc9efa33488741399eccb777737c2
tree536d58b1300b9f4f77a05347097aecb47019c172
parentf885f0701f6d68c4fdf2c6ad5ddba694863f2884
irqchip/ompic: fix return value check in ompic_of_init()

[ Upstream commit 404e6bea10662f0e142748353169d25378271e49 ]

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

Fixes: 9b54470afd83 ("irqchip: add initial support for ompic")
Acked-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-ompic.c