projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0db9b7a
)
intel-iommu: double kfree()
author
Dan Carpenter
<error27@gmail.com>
Sun, 19 Jul 2009 11:47:45 +0000
(14:47 +0300)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 20 Jul 2009 04:01:20 +0000
(
05:01
+0100)
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>
drivers/pci/intel-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/pci/intel-iommu.c
b/drivers/pci/intel-iommu.c
index 86a83946a8f5517e4eb9175ec7bf3629e796512f..097d5da2fae17e4d8ac493ed7b96d3dfc136f161 100644
(file)
--- 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;
}