Commit 903d2b9f authored by Michael Walle's avatar Michael Walle Committed by Jakub Kicinski
Browse files

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: 93a76530 ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: default avatarMichael Walle <mwalle@kernel.org>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250414083942.4015060-1-mwalle@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 688abe10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment