aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorHarshit Mogalapalli <[email protected]>2023-03-06 11:18:24 -0800
committerStefan Schmidt <[email protected]>2023-03-16 17:28:27 +0100
commit748b2f5e82d17480404b3e2895388fc2925f7caf (patch)
tree03f282d0c97ad341039573437e32169512841574 /scripts/generate_rust_analyzer.py
parentcd356010ce4c69ac7e1a40586112df24d22c6a4b (diff)
ca8210: Fix unsigned mac_len comparison with zero in ca8210_skb_tx()
mac_len is of type unsigned, which can never be less than zero. mac_len = ieee802154_hdr_peek_addrs(skb, &header); if (mac_len < 0) return mac_len; Change this to type int as ieee802154_hdr_peek_addrs() can return negative integers, this is found by static analysis with smatch. Fixes: 6c993779ea1d ("ca8210: fix mac_len negative array access") Signed-off-by: Harshit Mogalapalli <[email protected]> Acked-by: Alexander Aring <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stefan Schmidt <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions