vhost: replace -1 with VHOST_FILE_UNBIND in ioctls
authorZhu Lingshan <lingshan.zhu@intel.com>
Fri, 5 Jun 2020 10:27:14 +0000 (18:27 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 6 Jun 2020 20:26:27 +0000 (16:26 -0400)
commite0136c16fae95dc3762f3912f6f9336f5f57fe81
tree62e577a733ffc544afd1a02dc2d7e04d4326f25d
parent776f395004d829bbbf18c159ed9beb517a208c71
vhost: replace -1 with VHOST_FILE_UNBIND in ioctls

This commit replaces -1 with VHOST_FILE_UNBIND in ioctls since
we have added such a macro in the uapi header for vdpa_host.

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/1591352835-22441-5-git-send-email-lingshan.zhu@intel.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c