sparc: Fix syscall fallback bugs in VDSO.
authorDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:28:01 +0000 (21:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:29:23 +0000 (21:29 -0700)
commit776ca1543b5fe673aaf1beb244fcc2429d378083
treec40d5e40a9a3746b21520c2d57a45d0de01ed6fe
parentc343db455eb3105f11bb5ac290d77ab2006b0209
sparc: Fix syscall fallback bugs in VDSO.

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>
arch/sparc/vdso/vclock_gettime.c
tools/perf/util/event.c