aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel
diff options
context:
space:
mode:
authorNishanth Menon <[email protected]>2025-08-29 12:10:51 +0000
committerPaolo Abeni <[email protected]>2025-09-02 12:51:45 +0000
commita6099f263e1f408bcc7913c9df24b0677164fc5d (patch)
treee9ff200e7c593c345ca8d78284f6d263d93b03ab /drivers/net/ethernet/intel
parentnet: mctp: usb: initialise mac header in RX path (diff)
downloadkernel-a6099f263e1f408bcc7913c9df24b0677164fc5d.tar.gz
kernel-a6099f263e1f408bcc7913c9df24b0677164fc5d.zip
net: ethernet: ti: am65-cpsw-nuss: Fix null pointer dereference for ndev
In the TX completion packet stage of TI SoCs with CPSW2G instance, which has single external ethernet port, ndev is accessed without being initialized if no TX packets have been processed. It results into null pointer dereference, causing kernel to crash. Fix this by having a check on the number of TX packets which have been processed. Fixes: 9a369ae3d143 ("net: ethernet: ti: am65-cpsw: remove am65_cpsw_nuss_tx_compl_packets_2g()") Signed-off-by: Nishanth Menon <[email protected]> Signed-off-by: Chintan Vankar <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel')
0 files changed, 0 insertions, 0 deletions