ptp: ptp_clockmatrix: Fix missing unlock on error in idtcm_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 Nov 2019 14:33:09 +0000 (14:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:19:59 +0000 (21:19 -0800)
commitb97fa0b54447107e572ac7ba6ad0f0fd64170104
treeb7d570412f8d0f54e6aed08b3618885b17d5046f
parentd0d605c5e10af0714b7b7ed5e4d3918b308c28c0
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: 3a6ba7dc7799 ("ptp: Add a ptp clock driver for IDT ClockMatrix.")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Vincent Cheng <vincent.cheng.xh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_clockmatrix.c