Commit e4d533b6 authored by Alexander Atanasov's avatar Alexander Atanasov Committed by Linus Torvalds

[PATCH] ipchains_core GFP_KERNEL fix

  [ 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 ).
parent e347fa36
...@@ -549,7 +549,7 @@ ip_fw_domatch(struct ip_fwkernel *f, ...@@ -549,7 +549,7 @@ ip_fw_domatch(struct ip_fwkernel *f,
strcpy(outskb->data+sizeof(__u32)*2, rif); strcpy(outskb->data+sizeof(__u32)*2, rif);
memcpy(outskb->data+sizeof(__u32)*2+IFNAMSIZ, ip, memcpy(outskb->data+sizeof(__u32)*2+IFNAMSIZ, ip,
len-(sizeof(__u32)*2+IFNAMSIZ)); len-(sizeof(__u32)*2+IFNAMSIZ));
netlink_broadcast(ipfwsk, outskb, 0, ~0, GFP_KERNEL); netlink_broadcast(ipfwsk, outskb, 0, ~0, GFP_ATOMIC);
} }
else { else {
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment