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 B6D8AA04B5; Thu, 17 Sep 2020 01:06:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 77B171D407; Thu, 17 Sep 2020 01:06:01 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9C8E91D181; Thu, 17 Sep 2020 01:05:59 +0200 (CEST) IronPort-SDR: UM/myZA26syKcT/w+iPqfiNOy8GaBU52aDg1nW40kZkoBwUGGaqw9ElZ1YsueK3bXTmvEY3BsI suzTfJaPxONw== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="158882151" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="158882151" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 16:05:58 -0700 IronPort-SDR: oVlqPyVw0ZNmTtGI8MWEFH+WUpVKmtVE1I64OrwRIKv0l+r/JuaJv7upRAAF6Ae0P8Z7R/MmFr RxT8MN7P0WXg== X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="483493748" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.251.82.126]) ([10.251.82.126]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 16:05:56 -0700 To: wangyunjian , dev@dpdk.org Cc: hemant.agrawal@nxp.com, sachin.saxena@nxp.com, jerry.lilijun@huawei.com, xudingke@huawei.com, stable@dpdk.org References: <1600171060-30200-1-git-send-email-wangyunjian@huawei.com> From: Ferruh Yigit Message-ID: Date: Thu, 17 Sep 2020 00:05:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <1600171060-30200-1-git-send-email-wangyunjian@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v2] bus/dpaa: fix fd check before close X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/15/2020 12:57 PM, wangyunjian wrote: >> From: Yunjian Wang >> >> The fd is possibly a negative value while it is passed as an >> argument to function "close". Fix the check to the fd. >> >> Fixes: b9c94167904f ("bus/dpaa: decouple FQ portal alloc and init") >> Cc: stable@dpdk.org >> >> Signed-off-by: Yunjian Wang > > Acked-by: Hemant Agrawal > Applied to dpdk-next-net/main, thanks.