summaryrefslogtreecommitdiff
path: root/drivers/thunderbolt
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-03-23 16:19:06 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2021-03-23 17:09:34 +0300
commit2e7a5b3e22368b65583d1b717e267de0a5906c32 (patch)
treee2f3b02de3efb3045922ac848a7a58c7b4461246 /drivers/thunderbolt
parent3231307e399a411db07d7d7927df38c4a4b88353 (diff)
downloadlinux-2e7a5b3e22368b65583d1b717e267de0a5906c32.tar.xz
thunderbolt: Unlock on error path in tb_domain_add()
We accidentally deleted this unlock on the error path. Undelete it. Fixes: 7f0a34d7900b ("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>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r--drivers/thunderbolt/domain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thunderbolt/domain.c b/drivers/thunderbolt/domain.c
index a7d83eec3d15..98f4056f89ff 100644
--- a/drivers/thunderbolt/domain.c
+++ b/drivers/thunderbolt/domain.c
@@ -493,6 +493,7 @@ err_domain_del:
device_del(&tb->dev);
err_ctl_stop:
tb_ctl_stop(tb->ctl);
+ mutex_unlock(&tb->lock);
return ret;
}