diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-03-23 16:19:06 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2021-03-23 17:09:34 +0300 |
commit | 2e7a5b3e22368b65583d1b717e267de0a5906c32 (patch) | |
tree | e2f3b02de3efb3045922ac848a7a58c7b4461246 /drivers/thunderbolt/domain.c | |
parent | 3231307e399a411db07d7d7927df38c4a4b88353 (diff) | |
download | linux-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/domain.c')
-rw-r--r-- | drivers/thunderbolt/domain.c | 1 |
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; } |