diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-06-23 00:27:12 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-06-23 00:27:12 +0000 |
commit | 788529a4a224f51626b98288c3dd81f180fc5f22 (patch) | |
tree | ce9d65fe31d1af9fb1bf4b017680ba2fee3e8bbb /sys/dev/usb/uvideo.c | |
parent | a6056f82f38fafafcaca4ebec4a8184339a2c3ab (diff) |
amd64s bus_dma internals use a pointer to a lastaddr variable to keep
track of where it was up to when building dmamaps. that lastaddr variable
is not initialised every time you start to load a dmamap, so it was using
random stack garbage as state when first writing the sg list.
fortunately the way it was used meant it was extremely unlikely to cause a
problem, but why allow even that possibility? this inits lastaddr to 0 in
all the callers of load_buffer.
ok miod@
Diffstat (limited to 'sys/dev/usb/uvideo.c')
0 files changed, 0 insertions, 0 deletions