projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e45ff
)
drivers/misc/spear13xx_pcie_gadget.c: fix a memory leak in spear_pcie_gadget_probe...
author
Axel Lin
<axel.lin@gmail.com>
Wed, 15 Jun 2011 22:08:21 +0000
(15:08 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 16 Jun 2011 03:04:00 +0000
(20:04 -0700)
In the case of goto err_kzalloc, we should kfree target.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/spear13xx_pcie_gadget.c
patch
|
blob
|
history
diff --git
a/drivers/misc/spear13xx_pcie_gadget.c
b/drivers/misc/spear13xx_pcie_gadget.c
index
7aded90
..
cfbddbe
100644
(file)
--- a/
drivers/misc/spear13xx_pcie_gadget.c
+++ b/
drivers/misc/spear13xx_pcie_gadget.c
@@
-845,7
+845,7
@@
err_iounmap:
err_iounmap_app:
iounmap(config->va_app_base);
err_kzalloc:
- kfree(
config
);
+ kfree(
target
);
err_rel_res:
release_mem_region(res1->start, resource_size(res1));
err_rel_res0: