Re: [dpdk-dev] [PATCH] eal/linux: fix fd check before close

2017-02-10 Thread Thomas Monjalon
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 fun

[dpdk-dev] [PATCH] eal/linux: fix fd check before close

2017-02-10 Thread 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 --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxap