3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 10:29:03 +02:00

netdev: fix return value check for ft_over_ds_parse_action_ies

This returns a bool but was being treated as a signed int.
This commit is contained in:
James Prestwood 2021-09-27 15:41:35 -07:00 committed by Denis Kenzior
parent 2613564093
commit 8db2f442bc

View File

@ -4194,9 +4194,8 @@ static void netdev_ft_response_frame_event(const struct mmpdu_header *hdr,
goto ft_error;
}
ret = ft_over_ds_parse_action_ies(&info->super, netdev->handshake,
ies, ies_len);
if (ret < 0)
if (!ft_over_ds_parse_action_ies(&info->super, netdev->handshake,
ies, ies_len))
goto ft_error;
info->parsed = true;