projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a3f084
)
PCI: eliminate double kfree in intel-iommu initialization
author
Julia Lawall
<julia@diku.dk>
Thu, 29 May 2008 13:04:38 +0000
(15:04 +0200)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Tue, 10 Jun 2008 17:59:54 +0000
(10:59 -0700)
The destination of goto error also does a kfree(g_iommus), so it is not
correct to do one here.
This was found using Coccinelle (http://www.emn.fr/x-info/coccinelle/).
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/intel-iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/intel-iommu.c
b/drivers/pci/intel-iommu.c
index 66c0fd21894b155e9db690b65a86bfddffca29c4..4f05d91a0fd82f6ca74f633e80401cb1c1cfaa98 100644
(file)
--- a/
drivers/pci/intel-iommu.c
+++ b/
drivers/pci/intel-iommu.c
@@
-1725,7
+1725,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;
}