From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E7166A04C0 for ; Thu, 17 Sep 2020 12:36:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 96B5C1D5E3; Thu, 17 Sep 2020 12:36:02 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 7394E1D5B1; Thu, 17 Sep 2020 12:35:59 +0200 (CEST) IronPort-SDR: nBwAuGx46NWeRmaLwoHMTIA/Vd+9Ic5RjGa6Os4wbWEGvHx1Is6q2b5cGYyuT+wjR+kA4D7Ji8 rvynNIRdl4xw== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="157073470" X-IronPort-AV: E=Sophos;i="5.76,436,1592895600"; d="scan'208";a="157073470" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 03:35:57 -0700 IronPort-SDR: hQljpKiPzSPJ47bUa+7grET0nvb1fW1JM23Z/WDKgj7ygao9S6YomJSHW3J04NC4JC6cv8t3pd qiyj3efERaPg== X-IronPort-AV: E=Sophos;i="5.76,436,1592895600"; d="scan'208";a="483694277" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.213.206.43]) ([10.213.206.43]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 03:35:56 -0700 To: wangyunjian , dev@dpdk.org Cc: ferruh.yigit@intel.com, david.marchand@redhat.com, jerry.lilijun@huawei.com, xudingke@huawei.com, stable@dpdk.org References: <20200621090800.1AE521C00D@dpdk.org> <1599822484-19100-1-git-send-email-wangyunjian@huawei.com> From: "Burakov, Anatoly" Message-ID: Date: Thu, 17 Sep 2020 11:35:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <1599822484-19100-1-git-send-email-wangyunjian@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2 RESEND] vfio: fix resource leak when mapping fails X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On 11-Sep-20 12:08 PM, wangyunjian wrote: > From: Yunjian Wang > > Currently, only the 'vfio_dev_fd' is closed in failure path, so > some resources are not released(such as 'vfio_group_fd'). The > rte_vfio_release_device() should be used to avoid this problem. > > Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") > Cc: stable@dpdk.org > > Signed-off-by: Yunjian Wang > --- Reviewed-by: Anatoly Burakov -- Thanks, Anatoly