提交 b97fa0b5 编写于 作者: W Wei Yongjun 提交者: David S. Miller

ptp: ptp_clockmatrix: Fix missing unlock on error in idtcm_probe()

Add the missing unlock before return from function idtcm_probe()
in the error handling case.

Fixes: 3a6ba7dc ("ptp: Add a ptp clock driver for IDT ClockMatrix.")
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: NVincent Cheng <vincent.cheng.xh@renesas.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d0d605c5
......@@ -1294,8 +1294,10 @@ static int idtcm_probe(struct i2c_client *client,
err = set_tod_write_overhead(idtcm);
if (err)
if (err) {
mutex_unlock(&idtcm->reg_lock);
return err;
}
err = idtcm_load_firmware(idtcm, &client->dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册