summaryrefslogtreecommitdiffstats
path: root/sys/x86/iommu
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-11-08 17:27:22 +0000
committerdim <dim@FreeBSD.org>2013-11-08 17:27:22 +0000
commitcd1f38856a7164d3dfaf21d441b918cbd9b14972 (patch)
tree8e3c9b86e5a501faf55f23e70fbb1b34e8f7f56a /sys/x86/iommu
parent15963dba643546f1db36e11b461c4acb1ed81d5d (diff)
downloadFreeBSD-src-cd1f38856a7164d3dfaf21d441b918cbd9b14972.zip
FreeBSD-src-cd1f38856a7164d3dfaf21d441b918cbd9b14972.tar.gz
Initialize variable in sys/x86/iommu/busdma_dmar.c, to avoid possible
uninitialized use. Reviewed by: kib
Diffstat (limited to 'sys/x86/iommu')
-rw-r--r--sys/x86/iommu/busdma_dmar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/x86/iommu/busdma_dmar.c b/sys/x86/iommu/busdma_dmar.c
index df8799a..cada29d 100644
--- a/sys/x86/iommu/busdma_dmar.c
+++ b/sys/x86/iommu/busdma_dmar.c
@@ -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++;
OpenPOWER on IntegriCloud