projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f84758
)
pptp: fix sparse pointer warning
author
stephen hemminger
<stephen@networkplumber.org>
Thu, 8 Aug 2013 17:27:14 +0000
(10:27 -0700)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ppp/pptp.c
b/drivers/net/ppp/pptp.c
index 162464fe86bf7634fb9ac6c21ecd76e25beb10b6..9785a3ac02b3c4057887b047c1e4c708c6e9fdfe 100644
(file)
--- 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);