summaryrefslogtreecommitdiff
path: root/drivers/pci/intel-iommu.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2009-07-19 14:47:45 +0300
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-07-20 05:01:20 +0100
commit86f4d0123b1fddb47d35b9a893f8c0b94bf89abe (patch)
treef96b34958b8a1724fe91040324ad2b65d953e7d8 /drivers/pci/intel-iommu.c
parent0db9b7aebb6a1c2bba2d0636ae0b1f9ef729c827 (diff)
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;
}