Commit baec6f0c authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Junhao He
Browse files

coresight: platform: acpi: Ignore the absence of graph

mainline inclusion
from mainline-v6.5-rc1
commit 3a2888aa
category: Bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I89TNS
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3a2888aa1f962c55ca36119aebe67355c7bf54e4



--------------------------------

Some components may not have graph connections for describing
the trace path. e.g., ETE, where it could directly use the per
CPU TRBE. Ignore the absence of graph connections

Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20230710062500.45147-6-anshuman.khandual@arm.com


Signed-off-by: default avatarJunhao He <hejunhao3@huawei.com>
parent 131def5e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -692,8 +692,12 @@ static int acpi_coresight_parse_graph(struct acpi_device *adev,

	pdata->nr_inport = pdata->nr_outport = 0;
	graph = acpi_get_coresight_graph(adev);
	/*
	 * There are no graph connections, which is fine for some components.
	 * e.g., ETE
	 */
	if (!graph)
		return -ENOENT;
		return 0;

	nlinks = graph->package.elements[2].integer.value;
	if (!nlinks)