diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-01-30 00:34:04 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-02 00:24:35 +0400 |
commit | f9721ed2707661af75a414d09cdcd71f99a13f62 (patch) | |
tree | c77aa11e55066e784182b15f450144c37af62f3b /drivers/power/wm97xx_battery.c | |
parent | 6f01fd6e6f6809061b56e78f1e8d143099716d70 (diff) | |
download | linux-f9721ed2707661af75a414d09cdcd71f99a13f62.tar.xz |
bcma: Fix mem leak in bcma_bus_scan()
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>
Diffstat (limited to 'drivers/power/wm97xx_battery.c')
0 files changed, 0 insertions, 0 deletions