mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
coresight: etm4x: call cpus_read_unlock in error exit
Cpus_read_lock needs to be unlocked when setting up cpu hotplug callback failed and exiting probe. Change-Id: Ibbcd49d2e2d993c63b825697bc5799373f8a9a9e Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
This commit is contained in:
parent
f5e3002533
commit
145e6ea341
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue