Re: [v2, resend] b43: Fix memory leaks in b43_bus_dev_ssb_init and b43_bus_dev_bcma_init

2016-03-13 Thread Kalle Valo
Michael Büsch writes: > On Fri, 11 Mar 2016 21:52:30 +0530 > Sudip Mukherjee wrote: > >> On Sat, Jan 16, 2016 at 09:08:10PM +0800, Jia-Ju Bai wrote: >> > 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 k

Re: [v2, resend] b43: Fix memory leaks in b43_bus_dev_ssb_init and b43_bus_dev_bcma_init

2016-03-11 Thread Michael Büsch
On Fri, 11 Mar 2016 21:52:30 +0530 Sudip Mukherjee wrote: > On Sat, Jan 16, 2016 at 09:08:10PM +0800, Jia-Ju Bai wrote: > > 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_b

Re: [v2, resend] b43: Fix memory leaks in b43_bus_dev_ssb_init and b43_bus_dev_bcma_init

2016-03-11 Thread Sudip Mukherjee
On Sat, Jan 16, 2016 at 09:08:10PM +0800, Jia-Ju Bai wrote: > 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 Mich