Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp896452rwd; Tue, 13 Jun 2023 01:42:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+JmtjeJpz00vSv6yGo6o6eiHAEJgmtBx7wBDszzVvteTOzJ+MD1bdso1XB3xV7mmfu77Y X-Received: by 2002:aa7:d959:0:b0:514:9e0f:889c with SMTP id l25-20020aa7d959000000b005149e0f889cmr6136269eds.16.1686645752591; Tue, 13 Jun 2023 01:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686645752; cv=none; d=google.com; s=arc-20160816; b=q1LuISUgcvMKGnV6kSe6O1SXAcrTCbygfv6d3iAMlo6hBvCBqPvAcMSOsVyikGk2WY kLPPuSRjLFpChPktEVaXT7Ti5FcSBCiNDQEGl4wjQYG1B/jQ/LYSm4MmqbrmqkBkT0mX C404DysnKeTvMZuI0jGX5XXR5VduBegqsGGSB4MGGgg3ucPaGiuh8NcXq4yEf+6l8vsn 6XbWXo8wrhbC/u+oiHse10VRfAPDj3UABfrZyjbBxFLMndijUIVNhNENbFdn5nOeEgoI 832a/mIsPA8Y6VX4Yxv5R8Kj+q/2P/iX3u30Ee3Y2/zbPFN7VrlamphbM/x94ruVM/km +5eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=LykMw+brHJ6h3acp4cuNUd9bAu5EUl5/BisMPXaWNMw=; b=OLi3Ij4XRc/Z1YxpmHDpDcBUCN5oqByfIyhigTVMgcFrzW1LpU6EKoDgt7n4QBQlJa BEt22fidBh7NMysyhiEBc79/O8By/8vEjYChwcQkZ7KbXDvwwBBWYsDil/ewoV9T0wiH EyhC3P2AcV6tAs4rW/O7GWiNVQi+4IeOk8QzcxPByRkF5Mi8ea6OdDRHLGkOJYJmnzEG G/zBGi15RY1NSDKGQi9WKDxIKhVSobdl1407MgHe13uZCeWsvJO1D1wSULd7M8qxKQUC qnVfyiVPhGoYigveMKbVsVv/GuV8o4SnWLidnG3/g7hwxvGKLmXBk6iQOTjGeNHjvmpD fI1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aNOYCn1w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a056402061300b00510e5e21797si7461781edv.165.2023.06.13.01.42.16; Tue, 13 Jun 2023 01:42:32 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aNOYCn1w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241437AbjFMIhV (ORCPT + 61 others); Tue, 13 Jun 2023 04:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241418AbjFMIhQ (ORCPT ); Tue, 13 Jun 2023 04:37:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB734CD for ; Tue, 13 Jun 2023 01:37:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5D93C629DD for ; Tue, 13 Jun 2023 08:37:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79DDCC4339B; Tue, 13 Jun 2023 08:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686645428; bh=fCIjErVwfOklecRcRgYHfyOqXzBeEVKx1kIfZOGeR1c=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=aNOYCn1wFr280Ae8Mc/UqmZCp/GLEOEx79c4GOwkVZMJW1WMGKRsVdRu8FcxeWKXA 1icYTmBZrVkCfBpAL6iHslKwBZ78bbbBh5bUXzqDT1h8cabKH5+ampVRhn/fIzUKcE 6C4CrlEFBCjMKAryC5m86ZwXuFdx/KGpXNgzsCLllyCag41YkhsRq+aAAx/zA6MPIs w6KCsibeCMcgUT5/BEmnfvNS5wfo6PqcH9MYKuHzJUxSnUOSiuVB7M57DCZusovf8k bTjolWDuJOxhQzK7OF+5AheCjI6gKGZArz/DRmck+mRbrkx/lYaU8JM61WuqL1B+Y6 Zm4SSEp/p1vFA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: rtw88: add missing unwind goto for __rtw_download_firmware() From: Kalle Valo In-Reply-To: <20230607012741.10353-1-pkshih@realtek.com> References: <20230607012741.10353-1-pkshih@realtek.com> To: Ping-Ke Shih Cc: , , , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168664542578.24637.12994274738056453898.kvalo@kernel.org> Date: Tue, 13 Jun 2023 08:37:07 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Ping-Ke Shih wrote: > This flaw is detected by smatch: > drivers/net/wireless/realtek/rtw88/mac.c:748 __rtw_download_firmware() > warn: missing unwind goto? > > Though most things of dlfw_fail have been done by > download_firmware_end_flow() and wlan_cpu_enable(), an exception is that > download_firmware_end_flow() clear BIT_MCUFWDL_EN bit conditionally. > So, make this change to clear the bit. > > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Closes: https://lore.kernel.org/r/202306052310.OVhcUjZ3-lkp@intel.com/ > Cc: Sascha Hauer > Signed-off-by: Ping-Ke Shih Patch applied to wireless-next.git, thanks. 91ccdbb94fea wifi: rtw88: add missing unwind goto for __rtw_download_firmware() -- https://patchwork.kernel.org/project/linux-wireless/patch/20230607012741.10353-1-pkshih@realtek.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches