Re: [RFC net-next v4 1/2] net: phy: phy_device: Prevent nullptr exceptions on ISR

From: Andrew Lunn
Date: Mon Jan 29 2024 - 08:31:46 EST


On Sun, Jan 21, 2024 at 08:54:48PM +0100, Andre Werner wrote:
> 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: Andre Werner <andre.werner@xxxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew