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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c
index be996d173615..c8b0e8575b44 100644
--- a/drivers/lguest/lguest_user.c
+++ b/drivers/lguest/lguest_user.c
@@ -385,7 +385,7 @@ static int initialize(struct file *file, const unsigned long __user *input)
385 /* "struct lguest" contains all we (the Host) know about a Guest. */ 385 /* "struct lguest" contains all we (the Host) know about a Guest. */
386 struct lguest *lg; 386 struct lguest *lg;
387 int err; 387 int err;
388 unsigned long args[3]; 388 unsigned long args[4];
389 389
390 /* 390 /*
391 * We grab the Big Lguest lock, which protects against multiple 391 * We grab the Big Lguest lock, which protects against multiple
@@ -419,6 +419,7 @@ static int initialize(struct file *file, const unsigned long __user *input)
419 /* Populate the easy fields of our "struct lguest" */ 419 /* Populate the easy fields of our "struct lguest" */
420 lg->mem_base = (void __user *)args[0]; 420 lg->mem_base = (void __user *)args[0];
421 lg->pfn_limit = args[1]; 421 lg->pfn_limit = args[1];
422 lg->device_limit = args[3];
422 423
423 /* This is the first cpu (cpu 0) and it will start booting at args[2] */ 424 /* This is the first cpu (cpu 0) and it will start booting at args[2] */
424 err = lg_cpu_start(&lg->cpus[0], 0, args[2]); 425 err = lg_cpu_start(&lg->cpus[0], 0, args[2]);