Skip to contentSkip to conversation

Patch "bus: arm-ccn: Prevent hotplug callback leak" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message Jan 13, 2017 Stable branch

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

bus: arm-ccn: Prevent hotplug callback leak

to the 4.9-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:
bus-arm-ccn-prevent-hotplug-callback-leak.patch
and it can be found in the queue-4.9 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 26242b330093fd14c2e94fb6cbdf0f482ab26576 Mon Sep 17 00:00:00 2001

From: Thomas Gleixner <[email protected]>
Date: Thu, 22 Dec 2016 11:14:06 +0100
Subject: bus: arm-ccn: Prevent hotplug callback leak

From: Thomas Gleixner <[email protected]>

commit 26242b330093fd14c2e94fb6cbdf0f482ab26576 upstream.

In case the driver registration fails, the hotplug callback is leaked.

Not fatal, because it's never invoked as there are no instances registered, but wrong nevertheless.

Fixes fdc15a36d84e ("bus/arm-ccn: Convert to hotplug statemachine")
Cc Sebastian Andrzej Siewior <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Suzuki K Poulose <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Will Deacon <[email protected]>
---
 drivers/bus/arm-ccn.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/bus/arm-ccn.c +4 -1
@@ -1570,7 +1570,10 @@ static int __init arm_ccn_init(void)
 	for (i = 0; i < ARRAY_SIZE(arm_ccn_pmu_events); i++)
 		arm_ccn_pmu_events_attrs[i] = &arm_ccn_pmu_events[i].attr.attr;
 
-	return platform_driver_register(&arm_ccn_driver);
+	ret = platform_driver_register(&arm_ccn_driver);
+	if (ret)
+		cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_CCN_ONLINE);
+	return ret;
 }
 
 static void __exit arm_ccn_exit(void)

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

queue-4.9/bus-arm-ccn-prevent-hotplug-callback-leak.patch