aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorLiu Jian <liujian56@huawei.com>2022-04-16 18:58:00 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2022-04-20 23:48:22 +0200
commit92ece28072f18f30099770c5d4b8e300ea6820fa (patch)
treeb855ca6184c3499fb1f0a2b5fdcbb7e1a3f00080 /net/core/skbuff.c
parentbpf: Enlarge offset check value to INT_MAX in bpf_skb_{load,store}_bytes (diff)
downloadlinux-dev-92ece28072f18f30099770c5d4b8e300ea6820fa.tar.xz
linux-dev-92ece28072f18f30099770c5d4b8e300ea6820fa.zip
net: Change skb_ensure_writable()'s write_len param to unsigned int type
Both pskb_may_pull() and skb_clone_writable()'s length parameters are of type unsigned int already. Therefore, change this function's write_len param to unsigned int type. Signed-off-by: Liu Jian <liujian56@huawei.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20220416105801.88708-3-liujian56@huawei.com
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 30b523fa4ad2..a84e00e44ad2 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -5601,7 +5601,7 @@ err_free:
}
EXPORT_SYMBOL(skb_vlan_untag);
-int skb_ensure_writable(struct sk_buff *skb, int write_len)
+int skb_ensure_writable(struct sk_buff *skb, unsigned int write_len)
{
if (!pskb_may_pull(skb, write_len))
return -ENOMEM;