]> git.baikalelectronics.ru Git - kernel.git/commit
tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()
authorAsias He <asias@redhat.com>
Fri, 15 Mar 2013 01:14:05 +0000 (09:14 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 18 Mar 2013 21:34:35 +0000 (14:34 -0700)
commitb8195e6734130455fb0bc813cbdf850e4e790a62
tree7ca8d79a0b44ee369d629486ced4063bfdaa366d
parentb9e662dad0e378f92109088b502c70e872d15496
tcm_vhost: Add missed lock in vhost_scsi_clear_endpoint()

tv_tpg->tv_tpg_vhost_count should be protected by tv_tpg->tv_tpg_mutex.

Signed-off-by: Asias He <asias@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/tcm_vhost.c