Commit 5f079290 authored by Vignesh Raghavendra's avatar Vignesh Raghavendra Committed by Paolo Abeni
Browse files

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: 681eb2be ("net: ethernet: ti: am65-cpsw: ensure proper channel cleanup in error path")
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Co-developed-by: default avatarSiddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: default avatarSiddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: default avatarAlexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: default avatarRoger Quadros <rogerq@kernel.org>
Link: https://patch.msgid.link/20250311154259.102865-1-s-vadapalli@ti.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4003c9e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment