2020-10-07 18:19:42 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
|
|
Date: Wed, 7 Oct 2020 17:18:28 +0200
|
|
|
|
Subject: [PATCH] net: core: downgrade unregister_netdevice refcount leak from
|
|
|
|
emergency to error
|
2023-01-30 16:27:19 +03:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2020-10-07 18:19:42 +03:00
|
|
|
|
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
2023-01-30 16:27:19 +03:00
|
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
2020-10-07 18:19:42 +03:00
|
|
|
---
|
|
|
|
net/core/dev.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/net/core/dev.c b/net/core/dev.c
|
2024-02-05 15:08:43 +03:00
|
|
|
index 3c5106cd0602..3634982362f7 100644
|
2020-10-07 18:19:42 +03:00
|
|
|
--- a/net/core/dev.c
|
|
|
|
+++ b/net/core/dev.c
|
2024-02-05 15:08:43 +03:00
|
|
|
@@ -10352,7 +10352,7 @@ static struct net_device *netdev_wait_allrefs_any(struct list_head *list)
|
2022-06-21 10:18:44 +03:00
|
|
|
if (time_after(jiffies, warning_time +
|
2022-09-06 08:41:22 +03:00
|
|
|
READ_ONCE(netdev_unregister_timeout_secs) * HZ)) {
|
2022-06-21 10:18:44 +03:00
|
|
|
list_for_each_entry(dev, list, todo_list) {
|
|
|
|
- pr_emerg("unregister_netdevice: waiting for %s to become free. Usage count = %d\n",
|
|
|
|
+ pr_err("unregister_netdevice: waiting for %s to become free. Usage count = %d\n",
|
|
|
|
dev->name, netdev_refcnt_read(dev));
|
|
|
|
ref_tracker_dir_print(&dev->refcnt_tracker, 10);
|
|
|
|
}
|