]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: fix error handling in vring ioctls
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Mar 2010 14:06:11 +0000 (16:06 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Mar 2010 21:07:35 +0000 (23:07 +0200)
commit5265d12998adb965b536043b49e16ab05c6af775
tree878526e743260b3666e36fb0655c0800a5d21afc
parent52404ab7485e0a7b0b1d56207fd9d7763aba63e2
vhost: fix error handling in vring ioctls

Stanse found a locking problem in vhost_set_vring:
several returns from VHOST_SET_VRING_KICK, VHOST_SET_VRING_CALL,
VHOST_SET_VRING_ERR with the vq->mutex held.
Fix these up.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Laurent Chavey <chavey@google.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c