[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130808102714.6f16ff43@nehalam.linuxnetplumber.net>
Date: Thu, 8 Aug 2013 10:27:14 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Dmitry Kozlov <xeb@...l.ru>, David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: [PATCH net-next] 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@...workplumber.org>
--- a/drivers/net/ppp/pptp.c 2013-05-11 15:58:52.472353116 -0700
+++ b/drivers/net/ppp/pptp.c 2013-07-30 14:40:52.602172742 -0700
@@ -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);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists