scsi: target_core_user: fix double unlock
authorMike Christie <mchristi@redhat.com>
Mon, 23 Jul 2018 19:07:43 +0000 (14:07 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Jul 2018 03:17:53 +0000 (23:17 -0400)
commitf0e89aae609bebd430ce7a96d2f642917d89ca57
treeb526b338a5969cbd82c3e57de7d772aafd88f641
parent807cf197fc9a3bc156523cb68786a9cb0ec396b4
scsi: target_core_user: fix double unlock

The caller of queue_cmd_ring grabs and releases the lock, so the
tcmu_setup_cmd_timer failure handling inside queue_cmd_ring should not call
mutex_unlock.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c