From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Date: Mon, 14 Mar 2016 08:18:58 +0200 Subject: [PATCH] b43: Fix memory leaks in b43_bus_dev_ssb_init and b43_bus_dev_bcma_init In-Reply-To: <1457716477-6287-1-git-send-email-sudipm.mukherjee@gmail.com> (Sudip Mukherjee's message of "Fri, 11 Mar 2016 22:44:37 +0530") References: <1457716477-6287-1-git-send-email-sudipm.mukherjee@gmail.com> Message-ID: <87a8m1mvjh.fsf@kamboji.qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Sudip Mukherjee Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, netdev@vger.kernel.org, Jia-Ju Bai , Michael =?utf-8?Q?B=C3=BCsch?= Sudip Mukherjee writes: > 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 If no objections I'm planning to queue this to 4.6-rc2. -- Kalle Valo