summaryrefslogtreecommitdiff
path: root/drivers/net/ppp/pptp.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-08-08 10:27:14 -0700
committerDavid S. Miller <davem@davemloft.net>2013-08-09 14:14:50 -0700
commit469230d118dc0822f6bf46c75ab147fa9f00741f (patch)
tree47ce73978a135f792727f2064cd6359d5ea0f3fe /drivers/net/ppp/pptp.c
parent0f847584a84cfe2bb24d82df516d745db840bb5f (diff)
downloadlwn-469230d118dc0822f6bf46c75ab147fa9f00741f.tar.gz
lwn-469230d118dc0822f6bf46c75ab147fa9f00741f.zip
pptp: fix sparse pointer warning
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>
Diffstat (limited to 'drivers/net/ppp/pptp.c')
-rw-r--r--drivers/net/ppp/pptp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c
index 162464fe86bf..9785a3ac02b3 100644
--- a/drivers/net/ppp/pptp.c
+++ b/drivers/net/ppp/pptp.c
@@ -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);