summaryrefslogtreecommitdiffstats
path: root/drivers/pci/intel-iommu.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2009-07-19 13:47:45 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-07-20 06:01:20 +0200
commit86f4d0123b1fddb47d35b9a893f8c0b94bf89abe (patch)
treef96b34958b8a1724fe91040324ad2b65d953e7d8 /drivers/pci/intel-iommu.c
parentintel-iommu: Kill pointless intel_unmap_single() function (diff)
downloadlinux-86f4d0123b1fddb47d35b9a893f8c0b94bf89abe.tar.xz
linux-86f4d0123b1fddb47d35b9a893f8c0b94bf89abe.zip
intel-iommu: double kfree()
g_iommus is freed after we "goto error;". Found by smatch (http://repo.or.cz/w/smatch.git). Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/pci/intel-iommu.c')
-rw-r--r--drivers/pci/intel-iommu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index 86a83946a8f5..097d5da2fae1 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -2224,7 +2224,6 @@ int __init init_dmars(void)
deferred_flush = kzalloc(g_num_of_iommus *
sizeof(struct deferred_flush_tables), GFP_KERNEL);
if (!deferred_flush) {
- kfree(g_iommus);
ret = -ENOMEM;
goto error;
}