Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5066247rwp; Sun, 16 Jul 2023 18:36:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlGY3cjO6y0uvXku//vEwmWr8CI8RqMzOeJ7k8GfW5tlIMdO0Ox5pQpwcm06bM2neDRUCZqB X-Received: by 2002:a5d:4006:0:b0:314:21b4:8322 with SMTP id n6-20020a5d4006000000b0031421b48322mr8008407wrp.10.1689557793617; Sun, 16 Jul 2023 18:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689557793; cv=none; d=google.com; s=arc-20160816; b=Xsq7gQrq9p8xmQQTCbSgQOKvv292/4jKnIbass5P8pdxoclpz3rTIFr4MPfa1AV8rB 2CWlE4FgjRciyWaHBjLMhJPjmAIOcNP2N3nGnlrzO4sdnd8DDzIvYLfBavhWOYDpcM0b 5nGqoq6bIBDQJH20enQcLuJ7RUgdYY5VFe+V4FQfmW1qN44KNV1L8NyaMWp79B8z7HkV 6oZYc7GctIGt5JnM76npTBcvySm3Voo0Wy4gHKbt9ndGpXlAVtsILyqNYbb0k0SohymI 6s0x3H7hVSbC2v3hUbJoVuwG3fI6MBP5j8d8HUquKaebWquQI0AISgpFEuA01m93tVuv 17Xw== 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=D62MlE/eV/y7hZerA6KY007h+4FRucfII6QcBv2BsXs=; fh=MF2xZm0dIZlaGH/DZ4oY5+FTxmTFmK44xLpdO4BOsjk=; b=0E1wh8ubs7SJRXfnFrbh6iTNQxplqTjNbhTaMkI6LERiGSdww+wuOTl11KNixsXE9q bZVqCOisPhg0kJQBg7HfT3yGFer6Ews0IlCPIxu3rV9SbK10CDzgm11hiE3H6Qh7XkrL gvZk5GisUmC95jyppQeEOfcE9Xw4CmoRbfG4ZN/0yjjLhaJejHnRQ5iJ8QJ6SwGlswC4 54TH+YKgskySrkCulkCy6fhOw8i3cwSP04YayMCi3cVULUaJ+TvsNNS/qUWkRLksjnk5 99mribfyCXMlhBHUHDSefeA6Mx+ew1CXJb9ZcgWGuXmAKhOiV2G8tEBYvL/ZklNnP4f1 f4tA== 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 n22-20020a170906841600b00992bd86ece6si6075364ejx.725.2023.07.16.18.36.12; Sun, 16 Jul 2023 18:36:33 -0700 (PDT) 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 S229496AbjGQB3B convert rfc822-to-8bit (ORCPT + 59 others); Sun, 16 Jul 2023 21:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjGQB3A (ORCPT ); Sun, 16 Jul 2023 21:29:00 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 71217E48; Sun, 16 Jul 2023 18:28:57 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 36H1SVLz8029388, 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 36H1SVLz8029388 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Mon, 17 Jul 2023 09:28:31 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) 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.17; Mon, 17 Jul 2023 09:28:39 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Mon, 17 Jul 2023 09:28:39 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Mon, 17 Jul 2023 09:28:39 +0800 From: Ping-Ke Shih To: Zhang Shurong , "Markus.Elfring@web.de" , "kuba@kernel.org" CC: "kvalo@kernel.org" , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v4] wifi: rtw89: debug: Fix error handling in rtw89_debug_priv_btc_manual_set() Thread-Topic: [PATCH v4] wifi: rtw89: debug: Fix error handling in rtw89_debug_priv_btc_manual_set() Thread-Index: AQHZtyJP/JJ+WUOdGEKPFTonbmCFAq+9LKkw Date: Mon, 17 Jul 2023 01:28:39 +0000 Message-ID: <96af917c4c8d46438da1e703b2276185@realtek.com> References: In-Reply-To: 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: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: Zhang Shurong > Sent: Saturday, July 15, 2023 9:43 PM > To: Ping-Ke Shih ; Markus.Elfring@web.de; kuba@kernel.org > Cc: kvalo@kernel.org; linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org; Zhang Shurong > > Subject: [PATCH v4] wifi: rtw89: debug: Fix error handling in rtw89_debug_priv_btc_manual_set() > > If there is a failure during kstrtobool_from_user() > rtw89_debug_priv_btc_manual_set should return a negative error code > instead of returning the count directly. > > Fix this bug by returning an error code instead of a count after > a failed call of the function "kstrtobool_from_user". Moreover > I omitted the label "out" with this source code correction. > > Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver") > Signed-off-by: Zhang Shurong Acked-by: Ping-Ke Shih > --- > Changes in v2: > - Corrected the format of this patch > - Used variable ret instead of goto out > Changes in v3: > - Improved change description > Changes in v4: > - Improved change description > Normally, we preserve three '-' as delimiter here. I tried to use pwclient to apply this patch, and fortunately it works. So, I think no need to resend because of this. [...]