diff options
| author | Chen Ni <nichen@iscas.ac.cn> | 2026-05-06 12:14:13 +0800 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-05-06 09:13:12 +0200 |
| commit | 8b9db67396105f6b95bcc57a354e50ac20705704 (patch) | |
| tree | aa33dae7ea4ed134aef931271d24146d84ac231c /drivers/platform/wmi/tests/git@git.tavy.me:linux.git | |
| parent | 76841b0ea8be9309f6f9d2f7cf0dbac3af9ec361 (diff) | |
irqchip/starfive: Fix error check for devm_platform_ioremap_resource()
devm_platform_ioremap_resource() returns an error pointer on failure, not
NULL.
Fix the check to use IS_ERR() and return PTR_ERR() to correctly handle
allocation failures.
Fixes: 2f59ca185497 ("irqchip/starfive: Use devm_ interfaces to simplify resource release")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Link: https://patch.msgid.link/20260506041413.1670799-1-nichen@iscas.ac.cn
Diffstat (limited to 'drivers/platform/wmi/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
