linux_dsm_epyc7002/drivers/net/wireless/marvell
Nicolai Stange 1754c4f60a libertas: make lbs_ibss_join_existing() return error code on rates overflow
Commit e5e884b426 ("libertas: Fix two buffer overflows at parsing bss
descriptor") introduced a bounds check on the number of supplied rates to
lbs_ibss_join_existing() and made it to return on overflow.

However, the aforementioned commit doesn't set the return value accordingly
and thus, lbs_ibss_join_existing() would return with zero even though it
failed.

Make lbs_ibss_join_existing return -EINVAL in case the bounds check on the
number of supplied rates fails.

Fixes: e5e884b426 ("libertas: Fix two buffer overflows at parsing bss descriptor")
Signed-off-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2020-01-27 16:36:33 +02:00
..
libertas libertas: make lbs_ibss_join_existing() return error code on rates overflow 2020-01-27 16:36:33 +02:00
libertas_tf libertas_tf: Use correct channel range in lbtf_geo_init 2019-07-24 14:53:40 +03:00
mwifiex mwifiex: Fix possible buffer overflows in mwifiex_cmd_append_vsie_tlv() 2020-01-27 16:34:34 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mwl8k.c mac80211: simplify TX aggregation start 2019-10-04 13:58:13 +02:00