Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9081984pxu; Mon, 28 Dec 2020 06:12:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz89HR2XiMgoYKyafv9QQEd76lzxpz9PdJWDGQ5YmVOYUujAWqM1D9w78afVKl5g4tpk8PK X-Received: by 2002:a17:907:96a4:: with SMTP id hd36mr40288502ejc.393.1609164732559; Mon, 28 Dec 2020 06:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164732; cv=none; d=google.com; s=arc-20160816; b=AKUTcBgPtBaEsIiT2kYPexEdfLZDqhXOf8QVU7VjB9fQKsX6LdEIyVLRcrumPaRnCQ dt9JhVouWa2Ut7wH3n8q8/9cXKfnSDckCbCbW7yjyQbSgke2NdL42G62IJx3TGTd8GL1 rSbLEgbzZ77uaBRlEXYuv78B1U0VD0m7mgsLexYC74Fs8fAvaBtrHj7wt75KH1zqOUYu lRIl7uWCH5ojM7+6XhfxICACMwCjvfgHh+hGXmrhuKs/13pZuNITH7OjiZ8jh7/3HjhH 3OMcCP3p3nt/ZouN2Eh84ac5WT7Pq8rEmOvOCQW9vURYn56WF6OEYMzMKXvzePtEf1d/ UAiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=m+vAYGdFsMrOdlchIiYNCO3mi6GyIEHAqJRZ+1ZOQqc=; b=jYu4scef1pUFUuPlgqAkxiuwd3F/gdhqhG7EIbFjfg3Szs+ThCka634+ttITs29SJZ kkJPVcOHjxqZDkxSkI2fCkAgu16WSRnUOtCT31fgRxPpDwxk3x7XIOwOo29yHmO38Vrh mzd63Iu1pV7T5M147eqmmEb4uzMi5j8Evj4tMcv/5IHBX4UuHhhmG0NpGQnLQwrLKj/r 4hyrcoQ1N4cHhK3/fThjjOa+qNxP1sFzALSiecjg1Gl1loiXQUkto1FJ23Mb99A6ALMe +n4MT7r8OkBbGFZf+cdolObWeubiG7nlgi37wHgfVmf2YSlOW5VQLJU/p44541plJr7i KNyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="OAl8z/4w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si18376840ejg.258.2020.12.28.06.11.48; Mon, 28 Dec 2020 06:12:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="OAl8z/4w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438787AbgL1OJU (ORCPT + 99 others); Mon, 28 Dec 2020 09:09:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:43292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438680AbgL1OIp (ORCPT ); Mon, 28 Dec 2020 09:08:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 21E1E20731; Mon, 28 Dec 2020 14:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164484; bh=KPuZp325EejXcnsgmbnaIvhJLTLjeV7kJv1O3yeprCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OAl8z/4wwz6ysXYJG8M6Oi2ZaYkyeBGlEtAM4z8jbLRaIJLce1ANAN6gQltjayFFP AOabVpFnDmpNUk8zfGE47Mej7bEZIzGoQ3ehTlXLgH6is1IatQIGgSL1C8mpj6SQR3 +u3t1yMbwG4JTP9sMN1sxsmlQVYRK/qy2a3zepLc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zhang Changzhong , Chi-hsien Lin , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 196/717] brcmfmac: fix error return code in brcmf_cfg80211_connect() Date: Mon, 28 Dec 2020 13:43:14 +0100 Message-Id: <20201228125030.358475852@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Changzhong [ Upstream commit 37ff144d29acd7bca3d465ce2fc4cb5c7072a7e5 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 3b1e0a7bdfee ("brcmfmac: add support for SAE authentication offload") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong Reviewed-by: Chi-hsien Lin Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/1605248896-16812-1-git-send-email-zhangchangzhong@huawei.com Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index a2dbbb977d0cb..0ee421f30aa24 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -2137,7 +2137,8 @@ brcmf_cfg80211_connect(struct wiphy *wiphy, struct net_device *ndev, BRCMF_WSEC_MAX_PSK_LEN); else if (profile->use_fwsup == BRCMF_PROFILE_FWSUP_SAE) { /* clean up user-space RSNE */ - if (brcmf_fil_iovar_data_set(ifp, "wpaie", NULL, 0)) { + err = brcmf_fil_iovar_data_set(ifp, "wpaie", NULL, 0); + if (err) { bphy_err(drvr, "failed to clean up user-space RSNE\n"); goto done; } -- 2.27.0