[PATCH net-next] pptp: fix sparse pointer warning

STALE4779d

2 messages, 2 authors, 2013-08-09 · open the first message on its own page

[PATCH net-next] pptp: fix sparse pointer warning

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2013-08-08 17:27:17

callid_sock array is referenced via rcu_dereference and
sparse rcu checks complains about address space mismatch.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

--- a/drivers/net/ppp/pptp.c	2013-05-11 15:58:52.472353116 -0700
+++ b/drivers/net/ppp/pptp.c	2013-07-30 14:40:52.602172742 -0700
@@ -47,7 +47,7 @@
 #define MAX_CALLID 65535
 
 static DECLARE_BITMAP(callid_bitmap, MAX_CALLID + 1);
-static struct pppox_sock **callid_sock;
+static struct pppox_sock __rcu **callid_sock;
 
 static DEFINE_SPINLOCK(chan_lock);
 

Re: [PATCH net-next] pptp: fix sparse pointer warning

From: David Miller <davem@davemloft.net>
Date: 2013-08-09 21:15:20

From: Stephen Hemminger <stephen@networkplumber.org>
Date: Thu, 8 Aug 2013 10:27:14 -0700
callid_sock array is referenced via rcu_dereference and
sparse rcu checks complains about address space mismatch.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help