On Fri, Jul 17, 2026 at 05:14:23PM +0800, Chenguang Zhao wrote:
From: Chenguang Zhao <redacted>
The platform drvdata is not set until all IRQs have been mapped, so the
local net_device pointer is NULL when IRQ mapping fails. Remove the device
allocated by sxgbe_drv_probe() through priv instead.
Fixes: 1edb9ca69e8a ("net: sxgbe: add basic framework for Samsung 10Gb ethernet driver")
Signed-off-by: Chenguang Zhao <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew