diff options
author | Nicolas Pitre <[email protected]> | 2024-10-04 00:10:34 -0400 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-10-08 10:30:30 +0200 |
commit | 03c96bc9d3d2d5991ed455d70a67cbafbbc50063 (patch) | |
tree | 06dfdcb1e08fd9329515f625ad92cb23963e08f9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 47f9605484a89ea14c41f0aa0e9294b7b94d64c0 (diff) |
net: ethernet: ti: am65-cpsw: avoid devm_alloc_etherdev, fix module removal
Usage of devm_alloc_etherdev_mqs() conflicts with
am65_cpsw_nuss_cleanup_ndev() as the same struct net_device instances
get unregistered twice. Switch to alloc_etherdev_mqs() and make sure
am65_cpsw_nuss_cleanup_ndev() unregisters and frees those net_device
instances properly.
With this, it is finally possible to rmmod the driver without oopsing
the kernel.
Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: Nicolas Pitre <[email protected]>
Reviewed-by: Roger Quadros <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions