OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73dfe93
)
funeth: unregister devlink port after netdevice unregister
author
Jiri Pirko
<jiri@nvidia.com>
Mon, 26 Sep 2022 11:09:36 +0000
(13:09 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 27 Sep 2022 14:54:44 +0000
(07:54 -0700)
Fix the order of destroy_netdev() flow and unregister the devlink port
after calling unregister_netdev().
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/fungible/funeth/funeth_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/fungible/funeth/funeth_main.c
b/drivers/net/ethernet/fungible/funeth/funeth_main.c
index
b6de2ad
..
6980455
100644
(file)
--- a/
drivers/net/ethernet/fungible/funeth/funeth_main.c
+++ b/
drivers/net/ethernet/fungible/funeth/funeth_main.c
@@
-1829,8
+1829,8
@@
static void fun_destroy_netdev(struct net_device *netdev)
fp = netdev_priv(netdev);
devlink_port_type_clear(&fp->dl_port);
- devlink_port_unregister(&fp->dl_port);
unregister_netdev(netdev);
+ devlink_port_unregister(&fp->dl_port);
fun_ktls_cleanup(fp);
fun_free_stats_area(fp);
fun_free_rss(fp);