[PATCH] net: rps: fix uninitialized symbol warning

Subsystems: networking [general], the rest

STALE3412d

2 messages, 2 authors, 2017-06-13 · open the first message on its own page

[PATCH] net: rps: fix uninitialized symbol warning

From: Ashwanth Goli <hidden>
Date: 2017-06-13 11:25:00

This patch fixes uninitialized symbol warning that
got introduced by the following commit
773fc8f6e8d6 ("net: rps: send out pending IPI's on CPU hotplug")

Signed-off-by: Ashwanth Goli <redacted>
---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index 54bb8d9..6d60149 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -8203,7 +8203,7 @@ static int dev_cpu_dead(unsigned int oldcpu)
 	struct sk_buff **list_skb;
 	struct sk_buff *skb;
 	unsigned int cpu;
-	struct softnet_data *sd, *oldsd, *remsd;
+	struct softnet_data *sd, *oldsd, *remsd = NULL;
 
 	local_irq_disable();
 	cpu = smp_processor_id();
-- 
1.9.1

Re: [PATCH] net: rps: fix uninitialized symbol warning

From: David Miller <davem@davemloft.net>
Date: 2017-06-13 15:30:42

From: Ashwanth Goli <redacted>
Date: Tue, 13 Jun 2017 16:54:55 +0530
This patch fixes uninitialized symbol warning that
got introduced by the following commit
773fc8f6e8d6 ("net: rps: send out pending IPI's on CPU hotplug")

Signed-off-by: Ashwanth Goli <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help