]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc: Fix syscall fallback bugs in VDSO.
authorDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:28:01 +0000 (21:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:56 +0000 (14:51 +0100)
commit12176be9fc1438c74476f369b9411d4581ba1ac4
treeda85e1f33c65a5105cc0d3d3215776310f0ed18f
parent366187ea2b332c981beeee167a1b53c60bf97e35
sparc: Fix syscall fallback bugs in VDSO.

[ Upstream commit 776ca1543b5fe673aaf1beb244fcc2429d378083 ]

First, the trap number for 32-bit syscalls is 0x10.

Also, only negate the return value when syscall error is indicated by
the carry bit being set.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/vdso/vclock_gettime.c