diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-01-06 10:40:05 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-08 19:27:41 -0800 |
commit | 2b446e650b418f9a9e75f99852e2f2560cabfa17 (patch) | |
tree | 6e7a192603b269bf3d171ec4d6dc5f704b5dcb1e /net | |
parent | c1787ffd0d24eb93eefac2dbba0eac5700da9ff1 (diff) |
docs: net: explain struct net_device lifetime
Explain the two basic flows of struct net_device's operation.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index bb0596c41b3e..79f514afb17d 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3441,7 +3441,7 @@ replay: if (ops->newlink) { err = ops->newlink(link_net ? : net, dev, tb, data, extack); - /* Drivers should call free_netdev() in ->destructor + /* Drivers should set dev->needs_free_netdev * and unregister it on failure after registration * so that device could be finally freed in rtnl_unlock. */ |