coresight: fix spinlock corruption issue

Spinlock corruption is observed on secure fuse
enabled devices due to invalid data present in
etmdrvdata array. Initialise the array
to fix the issue.

Change-Id: Ib16e3c3f6dc7d194af4eeca6f58c78483af71482
CRs-fixed: 1084892
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
This commit is contained in:
Amey Telawane 2016-11-02 12:28:22 +05:30
parent 2f817b68f0
commit bd1bdabd9f

View file

@ -2824,6 +2824,8 @@ err_late_init:
unregister_hotcpu_notifier(&etm4_cpu_notifier);
unregister_hotcpu_notifier(&etm4_cpu_dying_notifier);
}
etmdrvdata[drvdata->cpu] = NULL;
dev_set_drvdata(dev, NULL);
return ret;
}