diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-06-01 07:02:00 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-04 05:12:12 +0300 |
| commit | 1681cb1bde051c3b9ebbd337c0bfdd3e74167b2f (patch) | |
| tree | 9967abe3db203750240ab0ab5284ab9fd7509131 /include/linux/timerqueue.h | |
| parent | a02a765bd5c2ae7705144829b2911c96c29db6ba (diff) | |
| download | linux-1681cb1bde051c3b9ebbd337c0bfdd3e74167b2f.tar.xz | |
net: ibm: emac: fix unchecked platform_get_irq return value
platform_get_irq() returns a negative errno on failure.
Commit a598f66d9169 replaced irq_of_parse_and_map() (which returns 0
on failure) with platform_get_irq() but dropped the error check.
Without it, a negative IRQ number is passed to devm_request_irq(),
which fails with -EINVAL instead of propagating the real error
from platform_get_irq().
Add the missing error check and goto err_gone.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260601040201.103481-1-rosenp@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
