mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
Merge "coresight: etm4x: Fix use-after-free of per-cpu etm drvdata"
This commit is contained in:
commit
ab1b160dd8
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue