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:
parent
17341d1011
commit
fa778f80c2
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user