summaryrefslogtreecommitdiffstats
path: root/drivers/net/netconsole.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-12-05 05:22:17 +0100
committerJakub Kicinski <kuba@kernel.org>2021-12-07 01:06:02 +0100
commit5fa5ae605821e0e10ee489d9a6e331fd287ccc57 (patch)
tree54ecbe3957c2a4ea0edf2134b2a7272546fdd9ce /drivers/net/netconsole.c
parentipmr, ip6mr: add net device refcount tracker to struct vif_device (diff)
downloadlinux-5fa5ae605821e0e10ee489d9a6e331fd287ccc57.tar.xz
linux-5fa5ae605821e0e10ee489d9a6e331fd287ccc57.zip
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;