summaryrefslogtreecommitdiff
path: root/fs/befs/befs.h
diff options
context:
space:
mode:
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>2023-03-06 22:18:24 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-05 12:14:22 +0300
commita15fce1f17435e8b3ad7329fbd22ff4a2cb87093 (patch)
tree49811f191300b6fa6b914c338ca687a579acb1b7 /fs/befs/befs.h
parentc4b1e702dc841a79664c5b8000fd99ffe9b3e9c2 (diff)
downloadlinux-a15fce1f17435e8b3ad7329fbd22ff4a2cb87093.tar.xz
ca8210: Fix unsigned mac_len comparison with zero in ca8210_skb_tx()
commit 748b2f5e82d17480404b3e2895388fc2925f7caf upstream. 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 <harshit.m.mogalapalli@oracle.com> Acked-by: Alexander Aring <aahringo@redhat.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Link: https://lore.kernel.org/r/20230306191824.4115839-1-harshit.m.mogalapalli@oracle.com Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/befs/befs.h')
0 files changed, 0 insertions, 0 deletions