OSDN Git Service

alpha: osf_sys.c: fix put_tv32 regression
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Nov 2017 15:02:13 +0000 (16:02 +0100)
committerMatt Turner <mattst88@gmail.com>
Sun, 21 Jan 2018 00:58:39 +0000 (16:58 -0800)
commit645a05a72c366529bf7e566b32ec806744883597
treea86ffb01112ca5c9944b2d8cacf1dbf34b2d4de5
parent16dc17ee61ec3c16643fea675715cb3845d94735
alpha: osf_sys.c: fix put_tv32 regression

There was a typo in the new version of put_tv32() that caused an unguarded
access of a user space pointer, and failed to return the correct result in
gettimeofday(), wait4(), usleep_thread() and old_adjtimex().

This fixes it to give the correct behavior again.

Cc: stable@vger.kernel.org
Fixes: 1cc6c4635e9f ("osf_sys.c: switch handling of timeval32/itimerval32 to copy_{to,from}_user()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/kernel/osf_sys.c