diff options
author | Calvin Owens <calvinowens@fb.com> | 2016-10-07 14:02:16 -0700 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-10-26 16:35:15 +0200 |
commit | 0813fbc913582feef688265f2a5d7c077d6a3d1f (patch) | |
tree | d79ab5696ae476fbf68bb4b472f4dada470015b4 /net/netfilter/nfnetlink_log.c | |
parent | dd2602d00f80dd8bf30f083fde20b4fbbcf82266 (diff) | |
download | op-kernel-dev-0813fbc913582feef688265f2a5d7c077d6a3d1f.zip op-kernel-dev-0813fbc913582feef688265f2a5d7c077d6a3d1f.tar.gz |
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: Calvin Owens <calvinowens@fb.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nfnetlink_log.c')
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index eb086a1..7435505 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -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 |