Skip to content

Commit 469230d

Browse files
shemmingerdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0f84758 commit 469230d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ppp/pptp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#define MAX_CALLID 65535
4848

4949
static DECLARE_BITMAP(callid_bitmap, MAX_CALLID + 1);
50-
static struct pppox_sock **callid_sock;
50+
static struct pppox_sock __rcu **callid_sock;
5151

5252
static DEFINE_SPINLOCK(chan_lock);
5353

0 commit comments

Comments
 (0)