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
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
|
|
---
|
|
|
|
net/core/dev.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/net/core/dev.c b/net/core/dev.c
|
2022-11-14 22:05:01 +03:00
|
|
|
index be51644e95da..3247678314e2 100644
|
2020-10-07 18:19:42 +03:00
|
|
|
--- a/net/core/dev.c
|
|
|
|
+++ b/net/core/dev.c
|
2022-11-14 22:05:01 +03:00
|
|
|
@@ -10530,7 +10530,7 @@ static void netdev_wait_allrefs(struct net_device *dev)
|
2021-09-27 13:43:06 +03:00
|
|
|
if (refcnt != 1 &&
|
|
|
|
time_after(jiffies, warning_time +
|
|
|
|
netdev_unregister_timeout_secs * HZ)) {
|
2020-10-07 18:19:42 +03:00
|
|
|
- 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, refcnt);
|
|
|
|
warning_time = jiffies;
|
|
|
|
}
|