Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab1b160d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "coresight: etm4x: Fix use-after-free of per-cpu etm drvdata"

parents 766163e7 c13540d8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1201,6 +1201,7 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
	return 0;

err_arch_supported:
	etmdrvdata[drvdata->cpu] = NULL;
	if (--etm4_count == 0) {
		cpuhp_remove_state_nocalls(CPUHP_AP_ARM_CORESIGHT_STARTING);
		if (hp_online)