linux-stable/drivers/ptp
Dinghao Liu cb145e6c20 ptp: ocp: Fix error handling in ptp_ocp_device_init
[ Upstream commit caa0578c1d ]

When device_add() fails, ptp_ocp_dev_release() will be called
after put_device(). Therefore, it seems that the
ptp_ocp_dev_release() before put_device() is redundant.

Fixes: 773bda9649 ("ptp: ocp: Expose various resources on the timecard.")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Vadim Feodrenko <vadim.fedorenko@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-10 21:59:07 +02:00
..
Kconfig
Makefile
idt8a340_reg.h
ptp_chardev.c
ptp_clock.c
ptp_clockmatrix.c
ptp_clockmatrix.h
ptp_dte.c
ptp_idt82p33.c
ptp_idt82p33.h
ptp_ines.c
ptp_kvm_arm.c
ptp_kvm_common.c
ptp_kvm_x86.c
ptp_ocp.c ptp: ocp: Fix error handling in ptp_ocp_device_init 2023-10-10 21:59:07 +02:00
ptp_pch.c
ptp_private.h
ptp_qoriq.c ptp_qoriq: fix memory leak in probe() 2023-04-05 11:24:55 +02:00
ptp_qoriq_debugfs.c
ptp_sysfs.c
ptp_vclock.c
ptp_vmw.c