diff options
| author | Chenguang Zhao <zhaochenguang@kylinos.cn> | 2026-07-17 17:14:23 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-07-22 15:05:11 -0700 |
| commit | 1df10cef2d1e7f9f2fb7eddb67fc70d3abf101f9 (patch) | |
| tree | 50b66288e38bc395c9637e4bebe02b26f3878ee2 /lib | |
| parent | 42310a24389c1bdda82e4c30750a6b72e98238d1 (diff) | |
| download | linux-next-1df10cef2d1e7f9f2fb7eddb67fc70d3abf101f9.tar.gz linux-next-1df10cef2d1e7f9f2fb7eddb67fc70d3abf101f9.zip | |
net: sxgbe: fix null pointer dereference in probe error path
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.
Cc: stable+noautosel@kernel.org # untested fix to unlikely driver error path
Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260717091423.1557737-1-chenguang.zhao@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
