vhost/vsock: handle vhost_vq_init_access() error
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 19 Jan 2017 10:43:53 +0000 (10:43 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 24 Jan 2017 22:33:10 +0000 (00:33 +0200)
commit0516ffd88fa0d006ee80389ce14a9ca5ae45e845
tree8475350acecd5050469ea13e3c8602d98ec8c6e9
parent7a308bb3016f57e5be11a677d15b821536419d36
vhost/vsock: handle vhost_vq_init_access() error

Propagate the error when vhost_vq_init_access() fails and set
vq->private_data to NULL.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vsock.c