]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ethernet: ti: am65-cpsw: Fix NAPI registration sequence
authorVignesh Raghavendra <vigneshr@ti.com>
Tue, 11 Mar 2025 15:42:59 +0000 (21:12 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Mar 2025 10:14:35 +0000 (11:14 +0100)
commit5f079290e5913a0060e059500b7d440990ac1066
treeee02612c979b38661cdb743ff95783318539169c
parent4003c9e78778e93188a09d6043a74f7154449d43
net: ethernet: ti: am65-cpsw: Fix NAPI registration sequence

Registering the interrupts for TX or RX DMA Channels prior to registering
their respective NAPI callbacks can result in a NULL pointer dereference.
This is seen in practice as a random occurrence since it depends on the
randomness associated with the generation of traffic by Linux and the
reception of traffic from the wire.

Fixes: 681eb2beb3ef ("net: ethernet: ti: am65-cpsw: ensure proper channel cleanup in error path")
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Co-developed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://patch.msgid.link/20250311154259.102865-1-s-vadapalli@ti.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/ti/am65-cpsw-nuss.c