summaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2021-05-24 13:50:54 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-03 09:00:50 +0200
commitf6442ee08fe66c8e45c4f246531a2aaf4f17a7a7 (patch)
tree3fa91a5381c49fc62a4987636b3ca019b48a27f0 /scripts/clang-tools/gen_compile_commands.py
parenta6a0af3c902c6c9b126755b9c2df92bb46275b3e (diff)
net: hsr: fix mac_len checks
[ Upstream commit 48b491a5cc74333c4a6a82fe21cea42c055a3b0b ] Commit 2e9f60932a2c ("net: hsr: check skb can contain struct hsr_ethhdr in fill_frame_info") added the following which resulted in -EINVAL always being returned: if (skb->mac_len < sizeof(struct hsr_ethhdr)) return -EINVAL; mac_len was not being set correctly so this check completely broke HSR/PRP since it was always 14, not 20. Set mac_len correctly and modify the mac_len checks to test in the correct places since sometimes it is legitimately 14. Fixes: 2e9f60932a2c ("net: hsr: check skb can contain struct hsr_ethhdr in fill_frame_info") Signed-off-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions