diff options
author | Kozlov Dmitry <dima@server> | 2010-08-05 15:13:58 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-08-05 15:13:58 +0400 |
commit | c30962027d1bd4e93ffd484f4177dee53a36aa1c (patch) | |
tree | 3ec906c2716b708e62cb152b6030b7131d064c18 | |
parent | dca3e601fb2c3703013f5729504a98083e030649 (diff) | |
download | accel-ppp-c30962027d1bd4e93ffd484f4177dee53a36aa1c.tar.gz accel-ppp-c30962027d1bd4e93ffd484f4177dee53a36aa1c.zip |
oops: use rcu_dereference instead of =
-rw-r--r-- | gentoo/net-dialup/accel-pptp/accel-pptp-0.8.4.ebuild (renamed from gentoo/net-dialup/accel-pptp/accel-pptp-0.8.1.ebuild) | 2 | ||||
-rw-r--r-- | kernel/driver/pptp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gentoo/net-dialup/accel-pptp/accel-pptp-0.8.1.ebuild b/gentoo/net-dialup/accel-pptp/accel-pptp-0.8.4.ebuild index 06204b0..7fe4f73 100644 --- a/gentoo/net-dialup/accel-pptp/accel-pptp-0.8.1.ebuild +++ b/gentoo/net-dialup/accel-pptp/accel-pptp-0.8.4.ebuild @@ -13,7 +13,7 @@ LICENSE="GPL" KEYWORDS="~amd64 ~x86" IUSE="tcpd server" -DEPEND="server? (!net-dialup/pptpd) +DEPEND="server? ( !net-dialup/pptpd ) >=net-dialup/ppp-2.4.2 >=virtual/linux-sources-2.6.15 tcpd? ( sys-apps/tcp-wrappers )" diff --git a/kernel/driver/pptp.c b/kernel/driver/pptp.c index ea4f991..2688624 100644 --- a/kernel/driver/pptp.c +++ b/kernel/driver/pptp.c @@ -244,7 +244,7 @@ static struct pppox_sock * lookup_chan(u16 call_id, __be32 s_addr) #else read_lock(&chan_lock); #endif - sock=callid_sock[call_id]; + sock = rcu_dereference(callid_sock[call_id]); if (sock) { opt=&sock->proto.pptp; if (opt->dst_addr.sin_addr.s_addr!=s_addr) sock=NULL; |