[dpdk-stable] patch 'net/virtio-user: fix tapfds close' has been	queued to stable release 17.02.1
    Yuanhan Liu 
    yuanhan.liu at linux.intel.com
       
    Thu May 25 11:48:31 CEST 2017
    
    
  
Hi,
FYI, your patch has been queued to stable release 17.02.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/28/17. So please
shout if anyone has objections.
Thanks.
	--yliu
---
>From 9176e72389b1d428d9ee29adcc5c633f3fbc23e6 Mon Sep 17 00:00:00 2001
From: Wenfeng Liu <liuwf at arraynetworks.com.cn>
Date: Mon, 13 Mar 2017 09:33:21 +0000
Subject: [PATCH] net/virtio-user: fix tapfds close
[ upstream commit 250c99651a774d6e2d02ee90aa33a07a1ea6fc0b ]
The valid tap file descriptor range should be equal or greater
than zero instead of non-zero
Fixes: e3b434818bbb ("net/virtio-user: support kernel vhost")
Signed-off-by: Wenfeng Liu <liuwf at arraynetworks.com.cn>
Acked-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
---
 drivers/net/virtio/virtio_user/vhost_kernel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/virtio/virtio_user/vhost_kernel.c b/drivers/net/virtio/virtio_user/vhost_kernel.c
index 05aa6c6..68d28b1 100644
--- a/drivers/net/virtio/virtio_user/vhost_kernel.c
+++ b/drivers/net/virtio/virtio_user/vhost_kernel.c
@@ -365,7 +365,7 @@ vhost_kernel_enable_queue_pair(struct virtio_user_dev *dev,
 	vhostfd = dev->vhostfds[pair_idx];
 
 	if (!enable) {
-		if (dev->tapfds[pair_idx]) {
+		if (dev->tapfds[pair_idx] >= 0) {
 			close(dev->tapfds[pair_idx]);
 			dev->tapfds[pair_idx] = -1;
 		}
-- 
1.9.0
    
    
More information about the stable
mailing list