vhost: fix error path in vhost_net_set_backend
authorJeff Dike <jdike@addtoit.com>
Thu, 4 Mar 2010 21:10:14 +0000 (16:10 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 7 Mar 2010 11:28:53 +0000 (13:28 +0200)
commit1dace8c801ac531022bd31a7316a6b4351837617
tree4a2edd69b3fb495a5eaaf7426e8a49ad5a56f990
parent39286fa41a8b2c6a9c1f656a7b3c3efca95bc1b9
vhost: fix error path in vhost_net_set_backend

An error could cause vhost_net_set_backend to exit without unlocking
vq->mutex. Fix this.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c