]> git.ipfire.org Git - thirdparty/linux.git/commit
irqchip/riscv-aplic: Fix an IS_ERR() vs NULL bug in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 20 Aug 2024 08:42:40 +0000 (11:42 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Aug 2024 15:05:32 +0000 (17:05 +0200)
commitefe81b7bdf7d882d0ce3d183f1571321046da8f1
treec33257f107940f70f6570395cd8d5a35bf4442a3
parentf97fd458763a4801d04dbb4a79d9ca6282d293ec
irqchip/riscv-aplic: Fix an IS_ERR() vs NULL bug in probe()

The devm_platform_ioremap_resource() function doesn't return NULL, it
returns error pointers.  Fix the error handling to match.

Fixes: 2333df5ae51e ("irqchip: Add RISC-V advanced PLIC driver for direct-mode")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/a5a628d6-81d8-4933-81a8-64aad4743ec4@stanley.mountain
drivers/irqchip/irq-riscv-aplic-main.c