From: stephen hemminger Date: Thu, 8 Aug 2013 17:27:14 +0000 (-0700) Subject: pptp: fix sparse pointer warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=469230d118dc0822f6bf46c75ab147fa9f00741f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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);