Skip to content
Commit 61c81872 authored by Andre Werner's avatar Andre Werner Committed by Jakub Kicinski
Browse files

net: phy: phy_device: Prevent nullptr exceptions on ISR



If phydev->irq is set unconditionally, check
for valid interrupt handler or fall back to polling mode to prevent
nullptr exceptions in interrupt service routine.

Signed-off-by: default avatarAndre Werner <andre.werner@systec-electronic.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240129135734.18975-2-andre.werner@systec-electronic.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 96b93f08
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment