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
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_pch.c
ptp_private.h
ptp_sysfs.c