Commit 903d2b9
net: ethernet: ti: am65-cpsw: fix port_np reference counting
A reference to the device tree node is stored in a private struct, thus
the reference count has to be incremented. Also, decrement the count on
device removal and in the error path.
Fixes: 93a7653 ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: Michael Walle <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 688abe1 commit 903d2b9
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2666 | 2666 | | |
2667 | 2667 | | |
2668 | 2668 | | |
2669 | | - | |
| 2669 | + | |
2670 | 2670 | | |
2671 | 2671 | | |
2672 | 2672 | | |
| |||
2720 | 2720 | | |
2721 | 2721 | | |
2722 | 2722 | | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
2723 | 2734 | | |
2724 | 2735 | | |
2725 | 2736 | | |
| |||
3622 | 3633 | | |
3623 | 3634 | | |
3624 | 3635 | | |
| 3636 | + | |
3625 | 3637 | | |
3626 | 3638 | | |
3627 | 3639 | | |
| |||
3661 | 3673 | | |
3662 | 3674 | | |
3663 | 3675 | | |
| 3676 | + | |
3664 | 3677 | | |
3665 | 3678 | | |
3666 | 3679 | | |
| |||
0 commit comments