summaryrefslogtreecommitdiffstats
path: root/drivers/net/eql.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-12-07 02:30:27 +0100
committerJakub Kicinski <kuba@kernel.org>2021-12-08 05:44:58 +0100
commit08f0b22d731fa86957749c649d6ef6ebc07e8ad2 (patch)
tree3e500248ec324d818c673881270f6339982be4b6 /drivers/net/eql.c
parentMerge branch 'mptcp-new-features-for-mptcp-sockets-and-netlink-pm' (diff)
downloadlinux-08f0b22d731fa86957749c649d6ef6ebc07e8ad2.tar.xz
linux-08f0b22d731fa86957749c649d6ef6ebc07e8ad2.zip
net: eql: add net device refcount tracker
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/eql.c')
-rw-r--r--drivers/net/eql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/eql.c b/drivers/net/eql.c
index 8ef34901c2d8..1111d1f33865 100644
--- a/drivers/net/eql.c
+++ b/drivers/net/eql.c
@@ -225,7 +225,7 @@ static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave)
list_del(&slave->list);
queue->num_slaves--;
slave->dev->flags &= ~IFF_SLAVE;
- dev_put(slave->dev);
+ dev_put_track(slave->dev, &slave->dev_tracker);
kfree(slave);
}
@@ -399,7 +399,7 @@ static int __eql_insert_slave(slave_queue_t *queue, slave_t *slave)
if (duplicate_slave)
eql_kill_one_slave(queue, duplicate_slave);
- dev_hold(slave->dev);
+ dev_hold_track(slave->dev, &slave->dev_tracker, GFP_ATOMIC);
list_add(&slave->list, &queue->all_slaves);
queue->num_slaves++;
slave->dev->flags |= IFF_SLAVE;