patch-2.4.27 linux-2.4.27/net/ipv6/netfilter/ip6t_owner.c
Next file: linux-2.4.27/net/ipv6/raw.c
Previous file: linux-2.4.27/net/ipv6/netfilter/ip6_tables.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
2004-08-07 16:26:07.033444531 -0700
- Orig file:
linux-2.4.26/net/ipv6/netfilter/ip6t_owner.c
- Orig date:
2001-10-30 15:08:12.000000000 -0800
diff -urN linux-2.4.26/net/ipv6/netfilter/ip6t_owner.c linux-2.4.27/net/ipv6/netfilter/ip6t_owner.c
@@ -137,7 +137,14 @@
if (matchsize != IP6T_ALIGN(sizeof(struct ip6t_owner_info)))
return 0;
-
+#ifdef CONFIG_SMP
+ /* files->file_lock can not be used in a BH */
+ if (((struct ip6t_owner_info *)matchinfo)->match
+ & (IP6T_OWNER_PID|IP6T_OWNER_SID)) {
+ printk("ip6t_owner: pid and sid matching is broken on SMP.\n");
+ return 0;
+ }
+#endif
return 1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)