Skip to content

Commit

Permalink
[IPSEC]: Don't warn if high-order hash resize fails
Browse files Browse the repository at this point in the history
Multi-page allocations are always likely to fail.  Since such failures
are expected and non-critical in xfrm_hash_alloc, we shouldn't warn about
them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Herbert Xu authored and David S. Miller committed May 14, 2007
1 parent b5505c6 commit 6253db0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/xfrm/xfrm_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ struct hlist_head *xfrm_hash_alloc(unsigned int sz)
n = __vmalloc(sz, GFP_KERNEL, PAGE_KERNEL);
else
n = (struct hlist_head *)
__get_free_pages(GFP_KERNEL, get_order(sz));
__get_free_pages(GFP_KERNEL | __GFP_NOWARN,
get_order(sz));

if (n)
memset(n, 0, sz);
Expand Down

0 comments on commit 6253db0

Please sign in to comment.