diff options
author | Stanislav Fomichev <sdf@fomichev.me> | 2025-03-09 14:58:49 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-12 13:19:15 -0700 |
commit | 110eff172dfebcaa1402d25375add0a3581bb43b (patch) | |
tree | b9c42b37dab2e2fd8410a6864c7cab0af9311279 /net/core/dev.c | |
parent | 0a13c1e0a449917b29c45d90701eededa69c99d3 (diff) |
eth: bnxt: switch to netif_close
All (error) paths that call dev_close are already holding instance lock,
so switch to netif_close to avoid the deadlock.
v2:
- add missing EXPORT_MODULE for netif_close
Fixes: 004b5008016a ("eth: bnxt: remove most dependencies on RTNL")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250309215851.2003708-1-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 812134b71f05..0bf5af9706b1 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -1760,6 +1760,7 @@ void netif_close(struct net_device *dev) list_del(&single); } } +EXPORT_SYMBOL(netif_close); void netif_disable_lro(struct net_device *dev) { |