diff options
-rw-r--r-- | drivers/soc/google/debug/debug-snapshot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soc/google/debug/debug-snapshot.c b/drivers/soc/google/debug/debug-snapshot.c index 8bbc163a3..924857f95 100644 --- a/drivers/soc/google/debug/debug-snapshot.c +++ b/drivers/soc/google/debug/debug-snapshot.c @@ -393,7 +393,8 @@ static void dbg_snapshot_fixmap(void) dss_log = (struct dbg_snapshot_log *)(dss_items[DSS_ITEM_KEVENTS_ID].entry.vaddr); dss_itmon = (struct itmon_logs *)(dss_items[DSS_ITEM_ITMON_ID].entry.vaddr); - dss_itmon->magic = DSS_ITMON_MAGIC_INITIALIZED; + if (dss_items[DSS_ITEM_ITMON_ID].entry.enabled) + dss_itmon->magic = DSS_ITMON_MAGIC_INITIALIZED; /* set fake translation to virtual address to debug trace */ dss_info.info_event = dss_log; |