summaryrefslogtreecommitdiff
path: root/drivers/net/netconsole.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-12-05 07:22:17 +0300
committerJakub Kicinski <kuba@kernel.org>2021-12-07 03:06:02 +0300
commit5fa5ae605821e0e10ee489d9a6e331fd287ccc57 (patch)
tree54ecbe3957c2a4ea0edf2134b2a7272546fdd9ce /drivers/net/netconsole.c
parent42120a86438379eb77424831ae3d696c2d5cb622 (diff)
downloadlinux-5fa5ae605821e0e10ee489d9a6e331fd287ccc57.tar.xz
netpoll: add net device refcount tracker to struct netpoll
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/netconsole.c')
-rw-r--r--drivers/net/netconsole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index ccecba908ded..ab8cd5551020 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -721,7 +721,7 @@ restart:
__netpoll_cleanup(&nt->np);
spin_lock_irqsave(&target_list_lock, flags);
- dev_put(nt->np.dev);
+ dev_put_track(nt->np.dev, &nt->np.dev_tracker);
nt->np.dev = NULL;
nt->enabled = false;
stopped = true;