diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2018-11-09 11:14:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-12 19:45:58 +0100 |
commit | 4d703925ad2592abbeafccfa9e9047f4076247a0 (patch) | |
tree | 568795d274df898e3f7bcc4b879340563a13a452 /arch/mips | |
parent | ba36191776b9ecf0a2b6d9caf1c65f315d5870c8 (diff) |
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>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions