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

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

Merge "coresight: etm4x: call cpus_read_unlock in error exit"

parents b6f208dd 145e6ea3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1141,8 +1141,10 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
		ret = cpuhp_setup_state_nocalls_cpuslocked(CPUHP_AP_ONLINE_DYN,
							   "arm/coresight4:online",
							   etm4_online_cpu, NULL);
		if (ret < 0)
		if (ret < 0) {
			cpus_read_unlock();
			goto err_arch_supported;
		}
		hp_online = ret;
	}