commit | 5a1e6f75831bf1f8e596d642cd8a2512f11548fc | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Wed Jun 15 15:08:21 2011 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Jun 15 20:04:00 2011 -0700 |
tree | 5197511289ca5aa50073be5233c8cd4aa57e62de | |
parent | 32e45ff43eaf5c17f5a82c9ad358d515622c2562 [diff] |
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>