From e7d8b7e43f49c1b33851e2aeffba75beb99e4e73 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 8 Nov 2013 17:27:22 +0000 Subject: [PATCH] Initialize variable in sys/x86/iommu/busdma_dmar.c, to avoid possible uninitialized use. Reviewed by: kib --- sys/x86/iommu/busdma_dmar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/x86/iommu/busdma_dmar.c b/sys/x86/iommu/busdma_dmar.c index df8799a4078..cada29d4143 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++;