summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-01-06 19:40:05 +0100
committerJakub Kicinski <kuba@kernel.org>2021-01-09 04:27:41 +0100
commit2b446e650b418f9a9e75f99852e2f2560cabfa17 (patch)
tree6e7a192603b269bf3d171ec4d6dc5f704b5dcb1e /net/core
parentppp: fix refcount underflow on channel unbridge (diff)
downloadlinux-2b446e650b418f9a9e75f99852e2f2560cabfa17.tar.xz
linux-2b446e650b418f9a9e75f99852e2f2560cabfa17.zip
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/core')
-rw-r--r--net/core/rtnetlink.c2
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.
*/