]> Pileus Git - ~andy/linux/commitdiff
pptp: fix sparse pointer warning
authorstephen hemminger <stephen@networkplumber.org>
Thu, 8 Aug 2013 17:27:14 +0000 (10:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2013 21:14:50 +0000 (14: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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pptp.c

index 162464fe86bf7634fb9ac6c21ecd76e25beb10b6..9785a3ac02b3c4057887b047c1e4c708c6e9fdfe 100644 (file)
@@ -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);