]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdbcf67917d485b5d64a0f7a49789b99e7702e040
treeb7d570412f8d0f54e6aed08b3618885b17d5046f
parenta248bdf2cdc7ea1939618b5752e3a6ac797c9750
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: 54108a7bc942 ("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