summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-06-01 07:02:00 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-04 05:12:12 +0300
commit1681cb1bde051c3b9ebbd337c0bfdd3e74167b2f (patch)
tree9967abe3db203750240ab0ab5284ab9fd7509131 /include/linux/timerqueue.h
parenta02a765bd5c2ae7705144829b2911c96c29db6ba (diff)
downloadlinux-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