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

This commit is contained in:
qctecmdr 2020-06-04 14:48:27 -07:00 • committed by Gerrit - the friendly Code Review server
commit ab1b160dd8

View file

@ -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)