]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: eliminate meaningless memcpy to data in pskb_carve_inside_nonlinear()
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 15 Aug 2020 08:48:53 +0000 (04:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2020 22:55:24 +0000 (15:55 -0700)
commite3ec1e8ca02b7e6c935bba3f9b6da86c2e57d2eb
tree3abbfe2a791c1a43136d3326e2f67da9207fe4cb
parent46191546d03d2e0c18d1c1d18e1ce11f5e717f28
net: eliminate meaningless memcpy to data in pskb_carve_inside_nonlinear()

The frags of skb_shared_info of the data is assigned in following loop. It
is meaningless to do a memcpy of frags here.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c