Skip to content

Commit

Permalink
thunderbolt: Unlock on error path in tb_domain_add()
Browse files Browse the repository at this point in the history
We accidentally deleted this unlock on the error path.  Undelete it.

Fixes: 7f0a34d ("thunderbolt: Decrease control channel timeout for software connection manager")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
  • Loading branch information
Dan Carpenter authored and westeri committed Mar 23, 2021
1 parent 3231307 commit 2e7a5b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/thunderbolt/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ int tb_domain_add(struct tb *tb)
device_del(&tb->dev);
err_ctl_stop:
tb_ctl_stop(tb->ctl);
mutex_unlock(&tb->lock);

return ret;
}
Expand Down

0 comments on commit 2e7a5b3

Please sign in to comment.