]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ipchains_core GFP_KERNEL fix
authorAlexander Atanasov <alex@ssi.bg>
Mon, 3 Jun 2002 05:32:34 +0000 (22:32 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 3 Jun 2002 05:32:34 +0000 (22:32 -0700)
  [ Made applicable with -p1 by Rusty ]

  nlma fixes a call to netlink_broadcast with GFP_KERNEL ( passed to
  skb_clone ) while we are in_interrupt() ( catched by a BUG() in
  slab.c:1109 ).

net/ipv4/netfilter/ipchains_core.c

index 5a49783051fda9958adbe9ef392666fa1f35e41b..9d2a1424351f892b3157922eb62aec724df8db0c 100644 (file)
@@ -549,7 +549,7 @@ ip_fw_domatch(struct ip_fwkernel *f,
                        strcpy(outskb->data+sizeof(__u32)*2, rif);
                        memcpy(outskb->data+sizeof(__u32)*2+IFNAMSIZ, ip,
                               len-(sizeof(__u32)*2+IFNAMSIZ));
-                       netlink_broadcast(ipfwsk, outskb, 0, ~0, GFP_KERNEL);
+                       netlink_broadcast(ipfwsk, outskb, 0, ~0, GFP_ATOMIC);
                }
                else {
 #endif