mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
tcmu: Add a missing unlock on an error path
We added a new error path here but we forgot to drop the lock first
before returning.
Fixes: 0d44374c1a
("tcmu: fix double se_cmd completion")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
16b9327704
commit
97488c7319
1 changed files with 1 additions and 0 deletions
|
@ -888,6 +888,7 @@ tcmu_queue_cmd_ring(struct tcmu_cmd *tcmu_cmd)
|
|||
ret = tcmu_setup_cmd_timer(tcmu_cmd);
|
||||
if (ret) {
|
||||
tcmu_cmd_free_data(tcmu_cmd, tcmu_cmd->dbi_cnt);
|
||||
mutex_unlock(&udev->cmdr_lock);
|
||||
return TCM_OUT_OF_RESOURCES;
|
||||
}
|
||||
entry->hdr.cmd_id = tcmu_cmd->cmd_id;
|
||||
|
|
Loading…
Reference in a new issue