patch-2.3.15 linux/net/core/filter.c
Next file: linux/net/core/firewall.c
Previous file: linux/net/core/dst.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon Aug 23 10:01:02 1999
- Orig file:
v2.3.14/linux/net/core/filter.c
- Orig date:
Sat May 15 17:43:46 1999
diff -u --recursive --new-file v2.3.14/linux/net/core/filter.c linux/net/core/filter.c
@@ -440,9 +440,12 @@
fp->len = fprog->len;
if ((err = sk_chk_filter(fp->insns, fp->len))==0) {
- struct sk_filter *old_fp = sk->filter;
+ struct sk_filter *old_fp;
+
+ spin_lock_bh(&sk->lock.slock);
+ old_fp = sk->filter;
sk->filter = fp;
- synchronize_bh();
+ spin_unlock_bh(&sk->lock.slock);
fp = old_fp;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)