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

Commit 9023736d authored by Mao Jinlong's avatar Mao Jinlong
Browse files

coresight: Initialize connections' source name



Need to initialize the source name of connections before the source
name check, otherwise it will be always null.

Change-Id: Iecd20d76b8849b628b1d00c371bda762f893e2e1
Signed-off-by: default avatarMao Jinlong <jinlmao@codeaurora.org>
parent 6986a4ed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2012, 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012, 2017-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/kernel.h>
@@ -1185,6 +1185,7 @@ struct coresight_device *coresight_register(struct coresight_desc *desc)
			conns[i].outport = desc->pdata->outports[i];
			conns[i].child_name = desc->pdata->child_names[i];
			conns[i].child_port = desc->pdata->child_ports[i];
			conns[i].source_name = desc->pdata->source_names[i];
		}
	}