Commit c5c44cfd authored by James Morris's avatar James Morris Committed by David S. Miller

net/ipv4/netfilter/ipchains_core.c: Use GFP_ATOMIC under ip_fw_lock.

parent 53153960
...@@ -1252,7 +1252,7 @@ static struct ip_fwkernel *convert_ipfw(struct ip_fwuser *fwuser, int *errno) ...@@ -1252,7 +1252,7 @@ static struct ip_fwkernel *convert_ipfw(struct ip_fwuser *fwuser, int *errno)
return NULL; return NULL;
} }
fwkern = kmalloc(SIZEOF_STRUCT_IP_FW_KERNEL, GFP_KERNEL); fwkern = kmalloc(SIZEOF_STRUCT_IP_FW_KERNEL, GFP_ATOMIC);
if (!fwkern) { if (!fwkern) {
duprintf("convert_ipfw: kmalloc failed!\n"); duprintf("convert_ipfw: kmalloc failed!\n");
*errno = ENOMEM; *errno = ENOMEM;
......
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