Commit 0813fbc9 authored by Calvin Owens's avatar Calvin Owens Committed by Pablo Neira Ayuso
Browse files

netfilter: nfnetlink_log: Use GFP_NOWARN for skb allocation



Since the code explicilty falls back to a smaller allocation when the
large one fails, we shouldn't complain when that happens.

Signed-off-by: default avatarCalvin Owens <calvinowens@fb.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent dd2602d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ nfulnl_alloc_skb(struct net *net, u32 peer_portid, unsigned int inst_size,
	 * message.  WARNING: has to be <= 128k due to slab restrictions */

	n = max(inst_size, pkt_size);
	skb = alloc_skb(n, GFP_ATOMIC);
	skb = alloc_skb(n, GFP_ATOMIC | __GFP_NOWARN);
	if (!skb) {
		if (n > pkt_size) {
			/* try to allocate only as much as we need for current