diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2003-07-31 08:20:24 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2003-07-31 08:20:24 +0000 |
| commit | 1716a1af0dcd474c944793e89ffcc6362a26bfed (patch) | |
| tree | f7279bcb689d562218332984da8d468f8fb8ac60 | |
| parent | cb065e0460e20962fa92adf5428aead1f372b5fa (diff) | |
Notes
| -rw-r--r-- | sys/i386/i386/sys_machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c index 7f31e04866d8..6900e511dfc4 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) { |
