diff options
| author | Nicolas Pitre <npitre@baylibre.com> | 2024-10-04 00:10:34 -0400 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-08 10:30:30 +0200 |
| commit | 03c96bc9d3d2d5991ed455d70a67cbafbbc50063 (patch) | |
| tree | 06dfdcb1e08fd9329515f625ad92cb23963e08f9 /tools/perf/scripts/python | |
| parent | net: ethernet: ti: am65-cpsw: prevent WARN_ON upon module removal (diff) | |
| download | linux-03c96bc9d3d2d5991ed455d70a67cbafbbc50063.tar.gz linux-03c96bc9d3d2d5991ed455d70a67cbafbbc50063.zip | |
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 <npitre@baylibre.com>
Reviewed-by: Roger Quadros <roger@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
