vhost/vsock: handle vhost_vq_init_access() error
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 19 Jan 2017 10:43:53 +0000 (10:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:57 +0000 (06:41 +0200)
commitae36f6a65af6f4eaca01cc5b68d8ecb266dbcc17
treedfdb28e7d630782feaa5c9a39dfcab7270360360
parentb13b3b706a9dc03dd1a1c31f8268cd5193c1858c
vhost/vsock: handle vhost_vq_init_access() error

[ Upstream commit 0516ffd88fa0d006ee80389ce14a9ca5ae45e845 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vhost/vsock.c