aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/lguest_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest/lguest_user.c')
-rw-r--r--drivers/lguest/lguest_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c
index 980b3550db7f..f4f6df85bece 100644
--- a/drivers/lguest/lguest_user.c
+++ b/drivers/lguest/lguest_user.c
@@ -89,8 +89,8 @@ static ssize_t read(struct file *file, char __user *user, size_t size,loff_t*o)
89 89
90 /* If we returned from read() last time because the Guest notified, 90 /* If we returned from read() last time because the Guest notified,
91 * clear the flag. */ 91 * clear the flag. */
92 if (lg->pending_notify) 92 if (cpu->pending_notify)
93 lg->pending_notify = 0; 93 cpu->pending_notify = 0;
94 94
95 /* Run the Guest until something interesting happens. */ 95 /* Run the Guest until something interesting happens. */
96 return run_guest(cpu, (unsigned long __user *)user); 96 return run_guest(cpu, (unsigned long __user *)user);