From: Dan Carpenter Date: Sun, 19 Jul 2009 11:47:45 +0000 (+0300) Subject: intel-iommu: double kfree() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=86f4d0123b1fddb47d35b9a893f8c0b94bf89abe;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David Woodhouse --- 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; }