Commit 2e7a5b3e authored by Dan Carpenter's avatar Dan Carpenter Committed by Mika Westerberg

thunderbolt: Unlock on error path in tb_domain_add()

We accidentally deleted this unlock on the error path.  Undelete it.

Fixes: 7f0a34d7 ("thunderbolt: Decrease control channel timeout for software connection manager")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 3231307e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment