Commit 5f07929
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: 681eb2b ("net: ethernet: ti: am65-cpsw: ensure proper channel cleanup in error path")
Signed-off-by: Vignesh Raghavendra <[email protected]>
Co-developed-by: Siddharth Vadapalli <[email protected]>
Signed-off-by: Siddharth Vadapalli <[email protected]>
Reviewed-by: Alexander Sverdlin <[email protected]>
Reviewed-by: Roger Quadros <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent 4003c9e commit 5f07929
1 file changed
+18
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2306 | 2306 | | |
2307 | 2307 | | |
2308 | 2308 | | |
| 2309 | + | |
2309 | 2310 | | |
2310 | 2311 | | |
2311 | 2312 | | |
2312 | | - | |
| 2313 | + | |
2313 | 2314 | | |
2314 | 2315 | | |
2315 | 2316 | | |
2316 | 2317 | | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
2317 | 2321 | | |
2318 | 2322 | | |
2319 | 2323 | | |
| |||
2323 | 2327 | | |
2324 | 2328 | | |
2325 | 2329 | | |
2326 | | - | |
2327 | | - | |
2328 | | - | |
2329 | 2330 | | |
2330 | 2331 | | |
2331 | 2332 | | |
2332 | 2333 | | |
2333 | 2334 | | |
2334 | | - | |
2335 | | - | |
2336 | | - | |
2337 | | - | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
2338 | 2338 | | |
| 2339 | + | |
2339 | 2340 | | |
2340 | 2341 | | |
2341 | 2342 | | |
| |||
2569 | 2570 | | |
2570 | 2571 | | |
2571 | 2572 | | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
2572 | 2576 | | |
2573 | 2577 | | |
2574 | 2578 | | |
| |||
2577 | 2581 | | |
2578 | 2582 | | |
2579 | 2583 | | |
2580 | | - | |
| 2584 | + | |
2581 | 2585 | | |
2582 | | - | |
2583 | | - | |
2584 | | - | |
2585 | 2586 | | |
2586 | 2587 | | |
2587 | 2588 | | |
2588 | 2589 | | |
2589 | 2590 | | |
2590 | 2591 | | |
2591 | 2592 | | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
2592 | 2596 | | |
2593 | | - | |
| 2597 | + | |
2594 | 2598 | | |
2595 | | - | |
2596 | 2599 | | |
| 2600 | + | |
2597 | 2601 | | |
2598 | 2602 | | |
2599 | 2603 | | |
| |||
0 commit comments