]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
arm64: vdso: minor ABI fix for clock_getres
authorNathan Lynch <nathan_lynch@mentor.com>
Tue, 24 Feb 2015 23:21:07 +0000 (17:21 -0600)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 26 Feb 2015 18:13:51 +0000 (18:13 +0000)
commite1b6b6ce55a0a25c8aa8af019095253b2133a41a
tree6262629f56ef359531228b0360cea1b841fca681
parentf3e39273e0a9a5c9dc78cd667ec3663e97e0e989
arm64: vdso: minor ABI fix for clock_getres

The vdso implementation of clock_getres currently returns 0 (success)
whenever a null timespec is provided by the caller, regardless of the
clock id supplied.

This behavior is incorrect.  It should fall back to syscall when an
unrecognized clock id is passed, even when the timespec argument is
null.  This ensures that clock_getres always returns an error for
invalid clock ids.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/vdso/gettimeofday.S