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>
This commit is contained in:
parent
dd2602d00f
commit
0813fbc913
|
@ -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 */
|
* message. WARNING: has to be <= 128k due to slab restrictions */
|
||||||
|
|
||||||
n = max(inst_size, pkt_size);
|
n = max(inst_size, pkt_size);
|
||||||
skb = alloc_skb(n, GFP_ATOMIC);
|
skb = alloc_skb(n, GFP_ATOMIC | __GFP_NOWARN);
|
||||||
if (!skb) {
|
if (!skb) {
|
||||||
if (n > pkt_size) {
|
if (n > pkt_size) {
|
||||||
/* try to allocate only as much as we need for current
|
/* try to allocate only as much as we need for current
|
||||||
|
|
Loading…
Reference in New Issue