Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83359627 authored by Yuanfang Zhang's avatar Yuanfang Zhang
Browse files

coresight: perf: Fix NULL point dereference issue



Use the correct method to reference the "event_data->path".

Change-Id: I12eca4bef96ff270fc478ad5d0d3023253af5121
Signed-off-by: default avatarYuanfang Zhang <zhangyuanfang@codeaurora.org>
parent 74de7711
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ static void free_event_data(struct work_struct *work)
		struct list_head **ppath;

		ppath = etm_event_cpu_path_ptr(event_data, cpu);
		source = coresight_get_source(event_data->path[cpu]);
		source = coresight_get_source(*ppath);
		if (!(IS_ERR_OR_NULL(*ppath)))
			coresight_release_path(source, *ppath);
		*ppath = NULL;