aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/lguest/hypercalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/hypercalls.c b/drivers/lguest/hypercalls.c
index db6caace3b9c..5ecd60b54201 100644
--- a/drivers/lguest/hypercalls.c
+++ b/drivers/lguest/hypercalls.c
@@ -295,6 +295,6 @@ void write_timestamp(struct lguest *lg)
295{ 295{
296 struct timespec now; 296 struct timespec now;
297 ktime_get_real_ts(&now); 297 ktime_get_real_ts(&now);
298 if (put_user(now, &lg->lguest_data->time)) 298 if (copy_to_user(&lg->lguest_data->time, &now, sizeof(struct timespec)))
299 kill_guest(lg, "Writing timestamp"); 299 kill_guest(lg, "Writing timestamp");
300} 300}