Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2231952rwi; Tue, 1 Nov 2022 05:33:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xB56ER+shoFdowy+hagdu7zI+7p5dhjnXEx+lflL41b9ydZpgds5s9LVaOCgpRkz4CLMH X-Received: by 2002:a05:6a00:1d89:b0:56c:a2b:f1c2 with SMTP id z9-20020a056a001d8900b0056c0a2bf1c2mr19895628pfw.45.1667306001351; Tue, 01 Nov 2022 05:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667306001; cv=none; d=google.com; s=arc-20160816; b=zHMmEZG298wNij0e4X5F8gq3HHAaG/ZeD/3e/qB35+hS3JsbmiyoUfYO+k75VunN/K w/BqkhR4LWp4xkZXkfWvZ/IBWNdk057JBiMjF25UjnDqAG6fMk1hnKu1dV5V3Y1Zy6Gm h4LVUqXFMOFDuIC2cl/zgejcESSX5MH15HxD0DO/0IFmxvCVCJtjwEdVgFaG8a1V3XfH 9QYA89ObfIY+wrzelbB/1zsci6vXHvEZNiZQeIJKIf6dqWG8cH8omHKH3xH4p53yg34X GUABuQkzBr0Ef5Tcw4GpjC0yyio2hKrCtvAN2EsNhJE0z9PP46YDC05UuCA/JaVIC4rA 1ubg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aNBQV5kv3jaz8d5axbGKc6/dmcNiNHxhAcaPW/qjJMk=; b=kw7m3Qw6tuGx78OeXRkyXrrHMAAiQp5Z5tXJtXjk0SHXLCIk8dw5xgib7B53Bs9KAr Zsm5eUTPT/5O7vesLCE9dOVysU+u9cWZ27CwwGHvDd4xei+dwJk33wxnibwihgFdX+Sp hFkFR9vyc4oXv95d8KjFcTXw1WZNlsMzr9eh1kHsevt3vu2JhF9kpGg5ki78BnpVC1TG ke+WxrESv0dmcefnrPZ0GpYKMxvqsT0qyjoxh54MTM9ISCcuIOc2wosaPaLp4zWoJCg4 xoLldhc9N9Om7dYOKsJUfd3y9qkvZb2HEJgEWenk3uh8v58OcxdaghYpVXXlMX//WYF7 LmHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W3o+soYW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 nn10-20020a17090b38ca00b00202eab3e1b5si7458841pjb.10.2022.11.01.05.33.06; Tue, 01 Nov 2022 05:33:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=W3o+soYW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S230233AbiKAL6N (ORCPT + 97 others); Tue, 1 Nov 2022 07:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbiKAL6D (ORCPT ); Tue, 1 Nov 2022 07:58:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6158D5B; Tue, 1 Nov 2022 04:57:54 -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 43B7660B86; Tue, 1 Nov 2022 11:57:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22FA8C433C1; Tue, 1 Nov 2022 11:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667303873; bh=V66qf+tHQ9219jONjNqAXnIeYGJ0k/AvWJv5NGgdXO0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W3o+soYW8TSNRRL1jH3HLy3psntlvnYPIIWjoBDww52WX29AtzTsY7Kktl9XYkevC EMflBoTerfMkNRRlzq/rBYfPAesC1mHA/1LTbYPTXbeeTLcT/gVLsWNk6m8+K6Vj+p Xb2VPat35VaDHanXMo2k+Dk2LIYyd3Y/q6M+4Nalp9c5baiDRRwZdOgaZK9l7V/9Ae R649TMv+oR4Z39IbdAfaHBxn+LTtpMarwgdB9OBm9Xw3kpOyQ/6wI0yJxN56JfP8bi HAJrq/OywhgQSKbXfEES9IB3/tbUAtVc2/zIsL4ONKrchvW/o71gr+IBDvQXiRORto EHm13obiXgjIg== Date: Tue, 1 Nov 2022 17:27:32 +0530 From: Manivannan Sadhasivam To: Frank Li Cc: allenbh@gmail.com, bhelgaas@google.com, dave.jiang@intel.com, helgaas@kernel.org, imx@lists.linux.dev, jdmason@kudzu.us, kw@linux.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, ntb@lists.linux.dev Subject: Re: [PATCH v14 3/7] PCI: endpoint: pci-epf-vntb: fix call pci_epc_mem_free_addr at err path Message-ID: <20221101115732.GG54667@thinkpad> References: <20221028155703.318928-1-Frank.Li@nxp.com> <20221028155703.318928-4-Frank.Li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221028155703.318928-4-Frank.Li@nxp.com> X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SORTED_RECIPS,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-kernel@vger.kernel.org On Fri, Oct 28, 2022 at 11:56:59AM -0400, Frank Li wrote: > From: Frank Li > > Replace pci_epc_mem_free_addr() with pci_epf_free_space() at error handle > path to match pci_epf_alloc_space(). > > Signed-off-by: Frank Li If this is a fix, then Fixes tag needs to be included. Thanks, Mani > --- > drivers/pci/endpoint/functions/pci-epf-vntb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c > index 1863006cc36c..191924a83454 100644 > --- a/drivers/pci/endpoint/functions/pci-epf-vntb.c > +++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c > @@ -571,7 +571,7 @@ static int epf_ntb_db_bar_init(struct epf_ntb *ntb) > return ret; > > err_alloc_peer_mem: > - pci_epc_mem_free_addr(ntb->epf->epc, epf_bar->phys_addr, mw_addr, epf_bar->size); > + pci_epf_free_space(ntb->epf, mw_addr, barno, 0); > return -1; > } > > -- > 2.34.1 > -- மணிவண்ணன் சதாசிவம்