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:
47633cf
)
[IA64] arch/ia64/sn/pci/tioca_provider.c: introduce missing kfree
author
Julia Lawall
<julia@diku.dk>
Wed, 10 Sep 2008 11:57:19 +0000
(13:57 +0200)
committer
Tony Luck
<tony.luck@intel.com>
Wed, 10 Sep 2008 17:49:36 +0000
(10:49 -0700)
Error handling code following a kmalloc should free the allocated data.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/pci/tioca_provider.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ia64/sn/pci/tioca_provider.c
b/arch/ia64/sn/pci/tioca_provider.c
index 529462c01570437aafdc8c9198ad394b8904e238..79165122501c20b696b5334401d397809a8a456b 100644
(file)
--- a/
arch/ia64/sn/pci/tioca_provider.c
+++ b/
arch/ia64/sn/pci/tioca_provider.c
@@
-420,8
+420,10
@@
tioca_dma_mapped(struct pci_dev *pdev, u64 paddr, size_t req_size)
entry = find_next_zero_bit(map, mapsize, last_entry);
}
- if (entry > mapsize)
+ if (entry > mapsize) {
+ kfree(ca_dmamap);
goto map_return;
+ }
for (i = 0; i < entries; i++)
set_bit(entry + i, map);