diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-03-29 21:41:12 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-03-29 21:41:12 -0700 |
commit | a4d7108c2efb536e0f55c3d02d5b37dd0ec67601 (patch) | |
tree | 0f519f8b1d50033d30c30407bdb1b8af9ed452f3 /net | |
parent | 8c495270845d6b4854607e946baef3637a8259ed (diff) | |
parent | 984cfd55e0c99e80b2e5b1dc6b2bf98608af7ff9 (diff) | |
download | linux-stable-a4d7108c2efb536e0f55c3d02d5b37dd0ec67601.tar.gz linux-stable-a4d7108c2efb536e0f55c3d02d5b37dd0ec67601.tar.bz2 linux-stable-a4d7108c2efb536e0f55c3d02d5b37dd0ec67601.zip |
Merge tag 'ieee802154-for-net-2023-03-29' of git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan
Stefan Schmidt says:
====================
ieee802154 for net 2023-03-29
Two small fixes this time.
Dongliang Mu removed an unnecessary null pointer check.
Harshit Mogalapalli fixed an int comparison unsigned against signed from a
recent other fix in the ca8210 driver.
* tag 'ieee802154-for-net-2023-03-29' of git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan:
net: ieee802154: remove an unnecessary null pointer check
ca8210: Fix unsigned mac_len comparison with zero in ca8210_skb_tx()
====================
Link: https://lore.kernel.org/r/20230329064541.2147400-1-stefan@datenfreihafen.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee802154/nl802154.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c index d8f4379d4fa6..832e3c50816c 100644 --- a/net/ieee802154/nl802154.c +++ b/net/ieee802154/nl802154.c @@ -2488,8 +2488,7 @@ static int nl802154_del_llsec_seclevel(struct sk_buff *skb, if (wpan_dev->iftype == NL802154_IFTYPE_MONITOR) return -EOPNOTSUPP; - if (!info->attrs[NL802154_ATTR_SEC_LEVEL] || - llsec_parse_seclevel(info->attrs[NL802154_ATTR_SEC_LEVEL], + if (llsec_parse_seclevel(info->attrs[NL802154_ATTR_SEC_LEVEL], &sl) < 0) return -EINVAL; |