Commit 6253db055eb62a1bd0a18a1d8489565303b2b1dd

Authored by Herbert Xu
Committed by David S. Miller
1 parent b5505c6e10

[IPSEC]: Don't warn if high-order hash resize fails

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

net/xfrm/xfrm_hash.c
... ... @@ -22,7 +22,8 @@
22 22 n = __vmalloc(sz, GFP_KERNEL, PAGE_KERNEL);
23 23 else
24 24 n = (struct hlist_head *)
25   - __get_free_pages(GFP_KERNEL, get_order(sz));
  25 + __get_free_pages(GFP_KERNEL | __GFP_NOWARN,
  26 + get_order(sz));
26 27  
27 28 if (n)
28 29 memset(n, 0, sz);