Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3936916rwe; Mon, 17 Apr 2023 05:57:58 -0700 (PDT) X-Google-Smtp-Source: AKy350bRtUCYQJo3VLwwQsgFZ/PnYPVixFjOC4gv+9lZT8bO78hl1mxMCEyxz+vpKDEbJmT0978J X-Received: by 2002:a17:90b:1095:b0:244:99f4:2f07 with SMTP id gj21-20020a17090b109500b0024499f42f07mr14882360pjb.30.1681736278455; Mon, 17 Apr 2023 05:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681736278; cv=none; d=google.com; s=arc-20160816; b=S5x3oOGZPJGe0vS1HbAMrg4QfSTlIndkoEgIse50Jfjiqln5WTKJuoGd+uvVJKFJCV 2W4TsdXU43MeSjC+D1X3UyD5vCUWVvjAMUpX/AmhGwkj9O5RBvE+4xJ7I5K70Ww2a7/0 16be1zNczOjFTAoz5pdSZ/9P0Qythtw2VHL/2dZWib/Mrxcv165VGH954MNXYuQBOZif LBmB1598OvrxUP1aaIg6mMOlI0R0N2vLVBU9/7M/K5mZbj9ULStJUHqcSX76AJGUNc7e 78avkQjcNI7pE1cg+7bAwwQZ7Cx3K251ykjvoxum4VuFLTI2Pxl+8I70o/cT1xV9skG3 GkmQ== 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=9evYWFGwbqB+oU8XWjxweIsE9+JuEnnJKmDeRTMsf5Q=; b=r+W7v7I8L+ShyucgpYEHJKZgSTGcXQbCcXgdLmKuDvgLz5wrTOwnD+2Zrb+vVMOBpL H1KN/LHk3lDydWRrHHO0DMwri/Kk5d3kYjHrddDLRa8Qa9MJVBWo09BJz9MA7loYzP+m 7EFBTBrlusk3/0vRZRVSmb5NbucP68TzZjhmOpXc9K7odZ4BuuZL3hbuTkhx+VEXsVLV ttObu4TWlmQTi29Isll8eibV1JVUby+ColR1iPohZ/OW6y7+dKTh10ivvwZTiRMf3qDx 1ZepGsSXxWlqzMT6u5vgIQ3RKSh4eTiyoXzsAouL2lQu6reCfX7qkit5DXmlUL+fR0Tr QZlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TmYdTvq1; 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 a8-20020a17090a8c0800b00246973aef88si14155077pjo.29.2023.04.17.05.57.49; Mon, 17 Apr 2023 05:57:58 -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=TmYdTvq1; 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 S231314AbjDQMsi (ORCPT + 63 others); Mon, 17 Apr 2023 08:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbjDQMs0 (ORCPT ); Mon, 17 Apr 2023 08:48:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 961BA9023; Mon, 17 Apr 2023 05:48:11 -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 2C5FA61943; Mon, 17 Apr 2023 12:48:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60708C4339B; Mon, 17 Apr 2023 12:48:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681735690; bh=ymO97Aj1BROKbgIqWrbAJ92afJ5pSqiQ6//laZMowAg=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=TmYdTvq1LLLHHdM0flTSPwHd4wyIIkC2JLcI8mLDjHRIbPYon+zCWc5fnkYm7xAV0 Y1jBjSn9BEKTHe7WOktlS1fN+d1TM6lBQxqcZfSFP+m1kpxbRzAJRLLMaC/YDZJ+UV zw8uJE+zv+0uXuLw1iCl32kcOnmmHr206/hBFFydFgsZu+9BBFGH49QOrpq7kEf57i CE8mXBDl/8X32hux5NROGyrWiOYa/zD0PuwFz3OCKzinXc5r7aWuFtSDeOZYuyiIw5 gFjkyFDW+/BGeYE2cJrtRNO5R9PHz3cB5cRWjmRiekN5K5iYPiGcT2fvhkO/uPKBJf gESkuQ+z5Zvxg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: fix missing unwind goto in `ath12k_pci_probe` From: Kalle Valo In-Reply-To: <20230417115921.176229-1-lnk_01@hust.edu.cn> References: <20230417115921.176229-1-lnk_01@hust.edu.cn> To: Li Ningke Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vasanthakumar Thiagarajan , Jeff Johnson , Karthikeyan Periyasamy , Carl Huang , P Praneesh , hust-os-kernel-patches@googlegroups.com, Li Ningke , Dongliang Mu , Kalle Valo , Bhagavathi Perumal S , Baochen Qiang , Balamurugan Selvarajan , ath12k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168173568189.28224.5440053310426162831.kvalo@kernel.org> Date: Mon, 17 Apr 2023 12:48:06 +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 Li Ningke wrote: > Smatch complains that > drivers/net/wireless/ath/ath12k/pci.c:1198 ath12k_pci_probe() warn: > missing unwind goto? > > In order to release the allocated resources before returning an > error, the statement that directly returns the error is changed > to a goto statement that first releases the resources in the error > handling section. > > Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") > Signed-off-by: Li Ningke > Reviewed-by: Dongliang Mu Already fixed with an identical patch: https://git.kernel.org/kvalo/ath/c/488d9a484f96 error: patch failed: drivers/net/wireless/ath/ath12k/pci.c:1195 error: drivers/net/wireless/ath/ath12k/pci.c: patch does not apply stg import: Diff does not apply cleanly Patch set to Rejected. -- https://patchwork.kernel.org/project/linux-wireless/patch/20230417115921.176229-1-lnk_01@hust.edu.cn/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches