From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal/linux: fix fd check before close Date: Fri, 10 Feb 2017 14:24:07 +0100 Message-ID: <2251064.kSqiKYJ6tA@xps13> References: <1486734797-24637-1-git-send-email-wang.yong19@zte.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, ferruh.yigit@intel.com To: Yong Wang Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 88FDE3B5 for ; Fri, 10 Feb 2017 14:24:09 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id v186so110042638wmd.0 for ; Fri, 10 Feb 2017 05:24:09 -0800 (PST) In-Reply-To: <1486734797-24637-1-git-send-email-wang.yong19@zte.com.cn> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-02-10 08:53, Yong Wang: > The "dev->intr_handle.fd" is possibly a negative value while it is > passed as an argument to function "close". Fix the check to the fd. > > Signed-off-by: Yong Wang pci: fix UIO interrupt file descriptor check before close Fixes: 5a60a7ffc801 ("pci: introduce functions to alloc and free uio resource") Applied, thanks