aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2024-11-22 17:13:43 +0000
committerPaolo Abeni <[email protected]>2024-11-26 11:45:53 +0000
commit9cfb5e7f0ded2bfaabc270ceb5f91d13f0e805b9 (patch)
tree7d4a44bacbbddb6f4c5fd6e8631e97629d7b7289 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentMerge branch 'octeontx2-af-misc-rpm-fixes' (diff)
downloadkernel-9cfb5e7f0ded2bfaabc270ceb5f91d13f0e805b9.tar.gz
kernel-9cfb5e7f0ded2bfaabc270ceb5f91d13f0e805b9.zip
net: hsr: fix hsr_init_sk() vs network/transport headers.
Following sequence in hsr_init_sk() is invalid : skb_reset_mac_header(skb); skb_reset_mac_len(skb); skb_reset_network_header(skb); skb_reset_transport_header(skb); It is invalid because skb_reset_mac_len() needs the correct network header, which should be after the mac header. This patch moves the skb_reset_network_header() and skb_reset_transport_header() before the call to dev_hard_header(). As a result skb->mac_len is no longer set to a value close to 65535. Fixes: 48b491a5cc74 ("net: hsr: fix mac_len checks") Signed-off-by: Eric Dumazet <[email protected]> Cc: George McCollister <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions