Fix a bogon in previous commit. bcopy() from the malloc'd memory that we

already copied into, rather than doing the bcopy() from the userland
pointer.  "Oops."
This commit is contained in:
John Baldwin 2002-10-04 20:19:36 +00:00
parent 17341d1011
commit fa778f80c2
2 changed files with 2 additions and 2 deletions

View File

@ -547,7 +547,7 @@ i386_set_ldt(td, args)
/* Fill in range */
savecrit = intr_disable();
bcopy(uap->descs,
bcopy(descs,
&((union descriptor *)(pldt->ldt_base))[uap->start],
uap->num * sizeof(union descriptor));
td->td_retval[0] = uap->start;

View File

@ -547,7 +547,7 @@ i386_set_ldt(td, args)
/* Fill in range */
savecrit = intr_disable();
bcopy(uap->descs,
bcopy(descs,
&((union descriptor *)(pldt->ldt_base))[uap->start],
uap->num * sizeof(union descriptor));
td->td_retval[0] = uap->start;