Initialize variable in sys/x86/iommu/busdma_dmar.c, to avoid possible

uninitialized use.

Reviewed by:	kib
This commit is contained in:
Dimitry Andric 2013-11-08 17:27:22 +00:00
parent 1c5ce94f1d
commit e7d8b7e43f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257860

View File

@ -341,6 +341,7 @@ dmar_bus_dmamap_load_something1(struct bus_dma_tag_dmar *tag,
segs = tag->segments;
ctx = tag->ctx;
seg = *segp;
error = 0;
idx = 0;
while (buflen > 0) {
seg++;