xfrm: Use GFP_ATOMIC in xfrm_compile_policy
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 15 Aug 2010 05:38:09 +0000 (22:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Aug 2010 05:38:09 +0000 (22:38 -0700)
commit2f09a4d5daaa36690d506fafda9c24f2be866f6b
tree3ad73903ae199c4bc47d029fed7f346ce6406b25
parent3c09e2647b5e1f1f9fd383971468823c2505e1b0
xfrm: Use GFP_ATOMIC in xfrm_compile_policy

As xfrm_compile_policy runs within a read_lock, we cannot use
GFP_KERNEL for memory allocations.

Reported-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c