aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/nfc/netlink.c
diff options
context:
space:
mode:
authorJianguo Wu <wujianguo@chinatelecom.cn>2021-12-08 18:03:33 +0800
committerJakub Kicinski <kuba@kernel.org>2021-12-09 07:48:07 -0800
commit158390e45612ef0fde160af0826f1740c36daf21 (patch)
tree8f398dda8e7966f50290cb67f3be86ac92a5a47e /net/nfc/netlink.c
parentnet: dsa: mv88e6xxx: error handling for serdes_power functions (diff)
downloadwireguard-linux-158390e45612ef0fde160af0826f1740c36daf21.tar.xz
wireguard-linux-158390e45612ef0fde160af0826f1740c36daf21.zip
udp: using datalen to cap max gso segments
The max number of UDP gso segments is intended to cap to UDP_MAX_SEGMENTS, this is checked in udp_send_skb(): if (skb->len > cork->gso_size * UDP_MAX_SEGMENTS) { kfree_skb(skb); return -EINVAL; } skb->len contains network and transport header len here, we should use only data len instead. Fixes: bec1f6f69736 ("udp: generate gso with UDP_SEGMENT") Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn> Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://lore.kernel.org/r/900742e5-81fb-30dc-6e0b-375c6cdd7982@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/nfc/netlink.c')
0 files changed, 0 insertions, 0 deletions