Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1363509

Re: b43: Fix memory leaks in b43_bus_dev_ssb_init andb43_bus_dev_bcma_init

From Kalle Valo <kvalo@codeaurora.org>
Newsgroups linux.kernel
Subject Re: b43: Fix memory leaks in b43_bus_dev_ssb_init andb43_bus_dev_bcma_init
Date 2016-03-23 17:00 +0100
Message-ID <rfTmq-5As-5@gated-at.bofh.it> (permalink)
References <rbyTg-161-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> From: Jia-Ju Bai <baijiaju1990@163.com>
> 
> 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>
> Acked-by: Michael Büsch <m@bues.ch>
> Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>

Thanks, applied to wireless-drivers.git.

Kalle Valo

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: b43: Fix memory leaks in b43_bus_dev_ssb_init  andb43_bus_dev_bcma_init Kalle Valo <kvalo@codeaurora.org> - 2016-03-23 17:00 +0100

csiph-web