From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Date: Wed, 23 Mar 2016 15:51:57 +0000 (UTC) Subject: b43: Fix memory leaks in b43_bus_dev_ssb_init andb43_bus_dev_bcma_init In-Reply-To: <1457716477-6287-1-git-send-email-sudipm.mukherjee@gmail.com> Message-ID: <20160323155157.45F8E615D5@smtp.codeaurora.org> List-Id: References: <1457716477-6287-1-git-send-email-sudipm.mukherjee@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Sudip Mukherjee Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jia-Ju Bai , b43-dev-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, =?UTF-8?q?Michael=20B=C3=BCsch?= > From: Jia-Ju Bai > > 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 > Acked-by: Michael B??sch > Signed-off-by: Sudip Mukherjee Thanks, applied to wireless-drivers.git. Kalle Valo