Use copy_to_user() not put_user for struct timespec
authorJes Sorensen <jes@sgi.com>
Mon, 22 Oct 2007 00:56:22 +0000 (10:56 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Oct 2007 05:49:48 +0000 (15:49 +1000)
commit891ff65ff50bb6affdaebb2cda3a4c58a6442b4d
tree737603293be49ce612e05fa49ec00a75e1b501a1
parentbabed5c00225f109d6ebea368ad2deea2abcce32
Use copy_to_user() not put_user for struct timespec

Use copy_to_user() when copying a struct timespec to the guest -
put_user() cannot handle two long's in one go on a 64bit arch.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jes Sorensen <jes@sgi.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
drivers/lguest/hypercalls.c