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-01-24 12:13:38 +00:00
parent 97d21c886d
commit 48cd7df296

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