diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-10-25 08:00:55 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-10-25 11:02:18 +0300 |
commit | 68a6e0c63c76128d403e8ca016c0bcb732ff1b05 (patch) | |
tree | ffa616237ded10e19da33c9f3349e89907c2bc89 /lib/debugobjects.c | |
parent | 00fa3461c86dd289b441d4d5a6bb236064bd207b (diff) | |
download | linux-68a6e0c63c76128d403e8ca016c0bcb732ff1b05.tar.xz |
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
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions