net/virtio-user: fix tapfds close
authorWenfeng Liu <liuwf@arraynetworks.com.cn>
Mon, 13 Mar 2017 09:33:21 +0000 (09:33 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 1 Apr 2017 06:58:54 +0000 (08:58 +0200)
commit250c99651a774d6e2d02ee90aa33a07a1ea6fc0b
treeeb548a098bab6616afadda4d8d8dbaeacef5b1e0
parent29b851e8de6d27150651723e74d8d2339825808c
net/virtio-user: fix tapfds close

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")
Cc: stable@dpdk.org
Signed-off-by: Wenfeng Liu <liuwf@arraynetworks.com.cn>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_user/vhost_kernel.c