]> git.karo-electronics.de Git - linux-beck.git/commit
b43: Fix memory leaks in b43_bus_dev_ssb_init and b43_bus_dev_bcma_init
authorJia-Ju Bai <baijiaju1990@163.com>
Fri, 18 Mar 2016 02:24:28 +0000 (13:24 +1100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Apr 2016 16:37:44 +0000 (19:37 +0300)
commit96838d61102a0fca20a7bda7289e0492aaf11896
tree13a54102d220a9573f680e60e7f8a3f2e1c784cb
parentfe9b47944edff9b6244c4f5e81bd7b50574dc22b
b43: Fix memory leaks in b43_bus_dev_ssb_init and b43_bus_dev_bcma_init

The memory allocated by kzalloc in b43_bus_dev_ssb_init and
b43_bus_dev_bcma_init is not freed.
This patch fixes the bug by adding kfree in b43_ssb_remove,
b43_bcma_remove and error handling code of b43_bcma_probe.

Thanks Michael for his suggestion.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Tested-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/b43/main.c