diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-06-04 00:17:34 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-09 03:23:24 +0300 |
| commit | 8084fc9292c2b9b148c9d19d50710c488652214c (patch) | |
| tree | dd865688a5a578a5ad03da58d1dfb3a05c3c2136 /include/linux/errqueue.h | |
| parent | 6443f4f20bdae726fe01cf5946fba9742a0ffda6 (diff) | |
| download | linux-8084fc9292c2b9b148c9d19d50710c488652214c.tar.xz | |
net: ibm: emac: mal: fix unchecked platform_get_irq return values
platform_get_irq() returns a negative errno on failure.
Commit c4f5d0454cab5 moved the platform_get_irq() calls and explicitly
removed the error checks that were previously present, claiming
devm_request_irq() can handle it. However, a negative IRQ number
passed to devm_request_irq() fails with -EINVAL instead of
propagating the real error from platform_get_irq().
Restore the missing error checks with proper errno propagation.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260603211734.30750-1-rosenp@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
