MFC r202919:

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:
Edward Tomasz Napierala 2010-03-27 14:58:28 +00:00
parent ae3c92a106
commit c0d73b99f2

View file

@ -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);
}