netfilter: ctnetlink: fix GFP_KERNEL allocation under spinlock
authorPatrick McHardy <kaber@trash.net>
Wed, 26 Nov 2008 11:57:44 +0000 (03:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 11:57:44 +0000 (03:57 -0800)
commit3ec192559033ed457f0d7856838654c100fc659f
tree8896e920dee68ded264d858358faca4c2c59621c
parentbd51126957eeac96d056c670545ff798c89f63f5
netfilter: ctnetlink: fix GFP_KERNEL allocation under spinlock

The previous fix for the conntrack creation race (netfilter: ctnetlink:
fix conntrack creation race) missed a GFP_KERNEL allocation that is
now performed while holding a spinlock. Switch to GFP_ATOMIC.

Reported-and-tested-by: Zoltan Borbely <bozo@andrews.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_netlink.c