]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
vhost: fix error path in vhost_init_used()
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Tue, 16 Feb 2016 14:54:28 +0000 (15:54 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Mar 2016 15:01:49 +0000 (17:01 +0200)
commite1f33be9186363da7955bcb5f0b03e6685544c50
tree351ee45f7f1e591fd755b38355a945e11547dd04
parent4e94ebdd06d5dc72b7a40fc12fc496d601fb7bbc
vhost: fix error path in vhost_init_used()

We don't want side effects. If something fails, we rollback vq->is_le to
its previous value.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c