Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6242224rwb; Mon, 14 Nov 2022 17:02:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4enl/dNdUvKZapvYWIzEx5r9QWO151XSUdxn9Y1GLoyUzq08oRlG70/hk2aFz4eOFo9K0o X-Received: by 2002:a17:902:6b8b:b0:17c:620f:13ac with SMTP id p11-20020a1709026b8b00b0017c620f13acmr1810361plk.9.1668474121299; Mon, 14 Nov 2022 17:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668474121; cv=none; d=google.com; s=arc-20160816; b=pRnmdBPsn6aWifYLDfzrMJd9oxSe8JvW3PJPMMbXUrVI80WkPw4RxNyRN0C3pzQ1pL WMFhzf4Tgo/3sSlRLqpBfsIwsF3judQVT2ek38SED+9TkvdUWedHADtg+KFIwyCiMjG4 ncLpbRshsfi9wFp/6Au4MdWdiY6D2omNCutzwS1D/3Bg+9MUU/ZLQieUqJAN0BXDcH7/ mcrpRMY4YGNHezAUsr5s+cdlq+/Clrakvu/Sjlz06i/pk0rQmcyWxT9kwCv+XAbSTJmN lCpLUuzhPbR9kWAiTddWs/FFLIsmpbwklsoFbxmdTN7pmdGVR2qRDZMfoJilyNeTxaC8 WSYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=afrUbQ9bgrVAHDt0SK1cDABzqD23+guuqba8fhi7DZo=; b=FUOR1xzCuIRYDazTGKwuSZCOhlYj/AbNoTsNFXjUA9Nst3IexDgE21PcTOqvRztuuH +KrewIn6PpO4fZ/IcfPwloJycDEnX7gbRi5LDmY4u2ndf36oEMnJf+hzu2BVr7Y3+oxt QqpWW+aNZXiux0dckEozJwP5AhKCPq3gJS1jPs5STs2bnCjhERdD2PHAtKAjghoOqMMm 8nb8/PQY5f/z+J7CMYYzTHu/N6ksbWPVj5qrN/t5reOBjwkYupQesFwXJ8pd4NT9cxsC /3coy2vv6inS2WnEMLfDYpVUeoCAAPmVJKl8KMUYmQSLw1dnSZblSMmR4SS8XA8LG8Gf mtXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w64-20020a638243000000b004704222ce97si2485507pgd.279.2022.11.14.17.01.52; Mon, 14 Nov 2022 17:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232191AbiKOAbY convert rfc822-to-8bit (ORCPT + 66 others); Mon, 14 Nov 2022 19:31:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbiKOAbX (ORCPT ); Mon, 14 Nov 2022 19:31:23 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 31F06D11D; Mon, 14 Nov 2022 16:31:23 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2AF0UGtF4016853, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 2AF0UGtF4016853 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 15 Nov 2022 08:30:16 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Tue, 15 Nov 2022 08:30:56 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 15 Nov 2022 08:30:55 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::15b5:fc4b:72f3:424b]) by RTEXMBS04.realtek.com.tw ([fe80::15b5:fc4b:72f3:424b%5]) with mapi id 15.01.2375.007; Tue, 15 Nov 2022 08:30:55 +0800 From: Ping-Ke Shih To: Christophe JAILLET , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni CC: "linux-kernel@vger.kernel.org" , "kernel-janitors@vger.kernel.org" , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" Subject: RE: [PATCH] wifi: rtw89: Fix some error handling path in rtw89_core_sta_assoc() Thread-Topic: [PATCH] wifi: rtw89: Fix some error handling path in rtw89_core_sta_assoc() Thread-Index: AQHY93eI5D4TEOTQ2EmDk/3qQhZtKK4/JA5Q Date: Tue, 15 Nov 2022 00:30:55 +0000 Message-ID: <3d97dc8a2b3447e998861ab6b8fb74af@realtek.com> References: <7b1d82594635e4406d3438f33d8da29eaa056c5a.1668354547.git.christophe.jaillet@wanadoo.fr> In-Reply-To: <7b1d82594635e4406d3438f33d8da29eaa056c5a.1668354547.git.christophe.jaillet@wanadoo.fr> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS03.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2022/11/14_=3F=3F_10:23:00?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Christophe JAILLET > Sent: Sunday, November 13, 2022 11:49 PM > To: Ping-Ke Shih ; Kalle Valo ; David S. Miller ; > Eric Dumazet ; Jakub Kicinski ; Paolo Abeni > Cc: linux-kernel@vger.kernel.org; kernel-janitors@vger.kernel.org; Christophe JAILLET > ; linux-wireless@vger.kernel.org; netdev@vger.kernel.org > Subject: [PATCH] wifi: rtw89: Fix some error handling path in rtw89_core_sta_assoc() > > 'ret' is not updated after a function call in rtw89_core_sta_assoc(). > This prevent error handling from working. > > Add the missing assignment. > > Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver") > Signed-off-by: Christophe JAILLET Acked-by: Ping-Ke Shih > --- > drivers/net/wireless/realtek/rtw89/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c > index e716b96d0f56..f30aadc41f2b 100644 > --- a/drivers/net/wireless/realtek/rtw89/core.c > +++ b/drivers/net/wireless/realtek/rtw89/core.c > @@ -2535,7 +2535,7 @@ int rtw89_core_sta_assoc(struct rtw89_dev *rtwdev, > } > > /* update cam aid mac_id net_type */ > - rtw89_fw_h2c_cam(rtwdev, rtwvif, rtwsta, NULL); > + ret = rtw89_fw_h2c_cam(rtwdev, rtwvif, rtwsta, NULL); > if (ret) { > rtw89_warn(rtwdev, "failed to send h2c cam\n"); > return ret; > -- > 2.34.1