mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
drivers/misc/spear13xx_pcie_gadget.c: fix a memory leak in spear_pcie_gadget_probe error path
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>
This commit is contained in:
parent
32e45ff43e
commit
5a1e6f7583
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue