diff options
author | Florian Westphal <fw@strlen.de> | 2019-05-23 15:44:12 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-31 18:02:48 +0200 |
commit | 2cf6bffc49dae26edd12af6b57c8c780590380bf (patch) | |
tree | 30fb1aebc6221f7164f0dfb82fc5895c9f4243e1 /net/netfilter/nfnetlink_queue.c | |
parent | fb2eb1c131f8526905a83bd98fd2d4e7c9f950a0 (diff) | |
download | linux-2cf6bffc49dae26edd12af6b57c8c780590380bf.tar.gz linux-2cf6bffc49dae26edd12af6b57c8c780590380bf.tar.bz2 linux-2cf6bffc49dae26edd12af6b57c8c780590380bf.zip |
netfilter: replace skb_make_writable with skb_ensure_writable
This converts all remaining users and then removes skb_make_writable.
Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nfnetlink_queue.c')
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 27dac47b29c2..831f57008d78 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -863,7 +863,7 @@ nfqnl_mangle(void *data, int data_len, struct nf_queue_entry *e, int diff) } skb_put(e->skb, diff); } - if (!skb_make_writable(e->skb, data_len)) + if (skb_ensure_writable(e->skb, data_len)) return -ENOMEM; skb_copy_to_linear_data(e->skb, data, data_len); e->skb->ip_summed = CHECKSUM_NONE; |