1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202919

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