Explorar o código

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>
Dan Carpenter %!s(int64=16) %!d(string=hai) anos
pai
achega
86f4d0123b
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      drivers/pci/intel-iommu.c

+ 0 - 1
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;
 	}