Thread (2 messages) flat view 2 messages, 2 authors, 2013-08-09
STALE4785d

[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);
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help