Fix array overflow. This routine is only called from procfs,
which is not mounted by default, and I've been unable to trigger a panic without this fix applied anyway. Reviewed by: kib, cperciva
This commit is contained in:
parent
97d21c886d
commit
48cd7df296
@ -213,8 +213,6 @@ fill_dbregs32(struct thread *td, struct dbreg32 *regs)
|
||||
err = fill_dbregs(td, &dr);
|
||||
for (i = 0; i < 8; i++)
|
||||
regs->dr[i] = dr.dr[i];
|
||||
for (i = 8; i < 16; i++)
|
||||
regs->dr[i] = 0;
|
||||
return (err);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user