linux-stable/drivers/ptp
Miroslav Lichvar dd57ad3e75 ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl
[ Upstream commit 83d0bdc739 ]

If a gettime64 call fails, return the error and avoid copying data back
to user.

Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:44:52 +01:00
..
Kconfig
Makefile
ptp_chardev.c ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl 2019-02-12 19:44:52 +01:00
ptp_clock.c time: Change posix clocks ops interfaces to use timespec64 2018-03-24 11:00:09 +01:00
ptp_ixp46x.c ptp: ixp46x: remove NO_IRQ handling 2016-09-06 16:57:02 -07:00
ptp_pch.c ptp: pch: convert to the 64 bit get/set time methods. 2015-03-31 12:01:19 -04:00
ptp_private.h
ptp_sysfs.c