linux-stable/drivers/ptp
Ajay Kaher 7f5eda0e31 ptp: Add error handling for adjfine callback in ptp_clock_adjtime
[ Upstream commit 98337d7c87 ]

ptp_clock_adjtime sets ptp->dialed_frequency even when adjfine
callback returns an error. This causes subsequent reads to return
an incorrect value.

Fix this by adding error check before ptp->dialed_frequency is set.

Fixes: 39a8cbd9ca ("ptp: remember the adjusted frequency")
Signed-off-by: Ajay Kaher <ajay.kaher@broadcom.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Link: https://patch.msgid.link/20241125105954.1509971-1-ajay.kaher@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:48:19 +01:00
..
idt8a340_reg.h
Kconfig ptp_pch: Restore dependency on PCI 2021-08-26 08:35:46 -04:00
Makefile
ptp_chardev.c ptp: Fix error message on failed pin verification 2024-07-05 09:12:22 +02:00
ptp_clock.c ptp: Add error handling for adjfine callback in ptp_clock_adjtime 2024-12-14 19:48:19 +01:00
ptp_clockmatrix.c
ptp_clockmatrix.h
ptp_dte.c
ptp_idt82p33.c
ptp_idt82p33.h
ptp_ines.c
ptp_kvm.c
ptp_pch.c ptp_pch: Load module automatically if ID matches 2021-10-13 10:04:27 +02:00
ptp_private.h ptp: annotate data-race around q->head and q->tail 2023-11-28 16:54:54 +00:00
ptp_qoriq_debugfs.c
ptp_qoriq.c ptp_qoriq: fix memory leak in probe() 2023-04-05 11:23:47 +02:00
ptp_sysfs.c ptp: annotate data-race around q->head and q->tail 2023-11-28 16:54:54 +00:00
ptp_vmw.c