]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vdso32: Fallback on getres syscall when clock is unknown
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 9 May 2020 09:42:14 +0000 (09:42 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 May 2020 09:24:29 +0000 (19:24 +1000)
commita87efc33e0d9ab30d59bc382539462e4a80ccaf3
tree1d05b9ecc6ab695f894176bccff89fe7ee73f9cd
parent793d6f0dbf69817ea3c82a8af70a553320ac2d9b
powerpc/vdso32: Fallback on getres syscall when clock is unknown

There are other clocks than the standard ones, for instance
per process clocks. Therefore, being above the last standard clock
doesn't mean it is a bad clock. So, fallback to syscall instead
of returning -EINVAL inconditionaly.

Fixes: 5a0bc15a0c4f ("powerpc/vdso32: implement clock_getres entirely")
Cc: stable@vger.kernel.org # v5.6+
Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Link: https://lore.kernel.org/r/7316a9e2c0c2517923eb4b0411c4a08d15e675a4.1589017281.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/vdso32/gettimeofday.S