From bd1bdabd9f1d1b5768a120bf9622959f0d334be6 Mon Sep 17 00:00:00 2001 From: Amey Telawane Date: Wed, 2 Nov 2016 12:28:22 +0530 Subject: [PATCH] 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 --- drivers/hwtracing/coresight/coresight-etm4x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index a37b5ce9a6b2..287d839f98d0 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c @@ -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; }