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-Tag: iomap-folio-5.17-old~1608^2~60^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2e7a5b3e22368b65583d1b717e267de0a5906c32;p=users%2Fwilly%2Flinux.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 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; }