Skip to contentSkip to conversation

Patch "bt8xx: fix memory leak" has been added to the 3.18-stable tree

PATCH [email protected] 1 participant 1 message Nov 6, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

bt8xx: fix memory leak

to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
bt8xx-fix-memory-leak.patch
and it can be found in the queue-3.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From foo@baz Mon Nov 6 10:42:09 CET 2017

From: Sudip Mukherjee <[email protected]>
Date: Sat, 7 Oct 2017 22:38:01 +0000
Subject: bt8xx: fix memory leak

From: Sudip Mukherjee <[email protected]>

[ Upstream commit 6792eb0cf9310ec240b7e7c9bfa86dff4c758c68 ]

If dvb_attach() fails then we were just printing an error message and exiting but the memory allocated to state was not released.

---
 drivers/media/pci/bt8xx/dvb-bt8xx.c |    1 +
 1 file changed, 1 insertion(+)
drivers/media/pci/bt8xx/dvb-bt8xx.c +1 -0
@@ -680,6 +680,7 @@ static void frontend_init(struct dvb_bt8
 		/*	DST is not a frontend, attaching the ASIC	*/
 		if (dvb_attach(dst_attach, state, &card->dvb_adapter) == NULL) {
 			pr_err("%s: Could not find a Twinhan DST\n", __func__);
+			kfree(state);
 			break;
 		}
 		/*	Attach other DST peripherals if any		*/

Patches currently in stable-queue which might be from [email protected] are

queue-3.18/bt8xx-fix-memory-leak.patch