summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/i386/i386/sys_machdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c
index 7f31e04..6900e51 100644
--- a/sys/i386/i386/sys_machdep.c
+++ b/sys/i386/i386/sys_machdep.c
@@ -423,14 +423,14 @@ i386_set_ldt(td, args)
union descriptor *descs, *dp;
int descs_size;
+ if ((error = copyin(args, uap, sizeof(struct i386_ldt_args))) < 0)
+ return(error);
+
#ifdef DEBUG
printf("i386_set_ldt: start=%d num=%d descs=%p\n",
- start, num, (void *)descs);
+ uap->start, uap->num, (void *)uap->descs);
#endif
- if ((error = copyin(args, uap, sizeof(struct i386_ldt_args))) < 0)
- return(error);
-
if (uap->descs == NULL) {
/* Free descriptors */
if (uap->start == 0 && uap->num == 0) {
OpenPOWER on IntegriCloud