From: Dan Carpenter Date: Tue, 23 Mar 2021 13:19:06 +0000 (+0300) Subject: thunderbolt: Unlock on error path in tb_domain_add() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2e7a5b3e22368b65583d1b717e267de0a5906c32;p=linux.git 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 Signed-off-by: Mika Westerberg --- diff --git a/drivers/thunderbolt/domain.c b/drivers/thunderbolt/domain.c index a7d83eec3d155..98f4056f89ffe 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; }