android_kernel_oneplus_msm8998/drivers/ptp
Miroslav Lichvar caf6a81cd7 ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl
[ Upstream commit 83d0bdc7390b890905634186baaa294475cd6a06 ]

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-20 10:13:05 +01:00
..
Kconfig ptp: ptp_pch depends on x86_32 2014-06-17 15:43:48 -07:00
Makefile
ptp_chardev.c ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl 2019-02-20 10:13:05 +01:00
ptp_clock.c time: Change posix clocks ops interfaces to use timespec64 2018-03-24 10:58:40 +01:00
ptp_ixp46x.c ptp: ixp46x: convert to the 64 bit get/set time methods. 2015-03-31 12:01:19 -04: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: expose the programmable pins via sysfs 2014-03-21 14:21:14 -04:00
ptp_sysfs.c ptp: expose the programmable pins via sysfs 2014-03-21 14:21:14 -04:00