git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f01fd6
)
bcma: Fix mem leak in bcma_bus_scan()
author
Jesper Juhl
<jj@chaosbits.net>
Sun, 29 Jan 2012 20:34:04 +0000
(21:34 +0100)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 1 Feb 2012 20:24:35 +0000
(15:24 -0500)
bcma_bus_scan() leaks 'struct bcma_device' bytes if
bcma_get_next_core() returns error.
Restructure the code so we always kfree() the memory we allocate to
the variable 'core' before it goes out of scope.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
No differences found