wifi: brcm80211: handle params_v1 allocation failure
authorPetr Tesarik <petr.tesarik.ext@huawei.com>
Wed, 2 Aug 2023 16:34:30 +0000 (18:34 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 8 Aug 2023 10:47:37 +0000 (12:47 +0200)
commit07d698324110339b420deebab7a7805815340b4f
tree898d40107f177ba946a2aecc91d1c4415d4940b1
parent16e455a465fca91907af0108f3d013150386df30
wifi: brcm80211: handle params_v1 allocation failure

Return -ENOMEM from brcmf_run_escan() if kzalloc() fails for v1 params.

Fixes: 398ce273d6b1 ("wifi: brcmfmac: cfg80211: Add support for scan params v2")
Signed-off-by: Petr Tesarik <petr.tesarik.ext@huawei.com>
Link: https://lore.kernel.org/r/20230802163430.1656-1-petrtesarik@huaweicloud.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c