On 2/17/2024 8:40 PM, Joe Perches wrote:
There's a missing NULL alloc test here: It doesn't appear obvious what a proper fix is. diff -u -p ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c /tmp/nothing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c --- ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ /tmp/nothing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -4308,7 +4308,6 @@ brcmf_pmksa_v3_op(struct brcmf_if *ifp, int ret;pmk_op = kzalloc(sizeof(*pmk_op), GFP_KERNEL);
Thanks, JoeLooking at the callers I would say returning -ENOMEM here when pmk_op is NULL should do the trick.
Regards, Arend
- pmk_op->version = cpu_to_le16(BRCMF_PMKSA_VER_3);if (!pmksa) {/* Flush operation, operate on entire list */
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature