UPSTREAM: 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>

(cherry picked from commit 0516ffd88fa0d006ee80389ce14a9ca5ae45e845)

BUG=chromium:763970
TEST=build caroline with USE=kvm_host

Change-Id: Iecee94337b82b41c1b980c08be13df9ffb7f8020
Signed-off-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/669386
Signed-off-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1058976
Reviewed-by: Guenter Roeck <groeck@chromium.org>
1 file changed