Skip to contentSkip to conversation

pptp: fix sparse pointer warning

PATCH Applied Stephen Hemminger 2 participants 2 messages Aug 8, 2013 – Aug 9, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pptp: fix sparse pointer warning

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

drivers/net/ppp/pptp.c +1 -1
@@ -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);