diff options
author | dim <dim@FreeBSD.org> | 2013-11-08 17:27:22 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-11-08 17:27:22 +0000 |
commit | cd1f38856a7164d3dfaf21d441b918cbd9b14972 (patch) | |
tree | 8e3c9b86e5a501faf55f23e70fbb1b34e8f7f56a /sys/x86/iommu | |
parent | 15963dba643546f1db36e11b461c4acb1ed81d5d (diff) | |
download | FreeBSD-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.c | 1 |
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++; |