initialise the state kept between calls to dmamap_load_buffer to 0. there
authordlg <dlg@openbsd.org>
Fri, 11 Jul 2008 03:03:07 +0000 (03:03 +0000)
committerdlg <dlg@openbsd.org>
Fri, 11 Jul 2008 03:03:07 +0000 (03:03 +0000)
commitf28fd68f484b4cdee96286cf74a05a7ca5f2cbc5
tree3b707a9924d8dfa2a57842def69615103400b8c0
parent29c90403b42c5e2ac47e3688ef4e25e8b91a4486
initialise the state kept between calls to dmamap_load_buffer to 0. there
was an extremely small chance that random stack garbage coudl be used which
could corrupt a dmamap.

this is the same as the change made to amd64 in
src/sys/arch/amd64/amd64/bus_dma.c r1.10.

ok miod@ kettenis@
sys/arch/i386/i386/machdep.c