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

Commit ee57fff8 authored by Yuanfang Zhang's avatar Yuanfang Zhang Committed by Gerrit - the friendly Code Review server
Browse files

coresight: disable the path when enable source link fail



Disable the path in coresight_enable_source_link() when enable
source link fail.

Change-Id: Ibb19c2df0511176f3b0fc65deb3e9d8854daf23a
Signed-off-by: default avatarYuanfang Zhang <zhangyuanfang@codeaurora.org>
parent 5fce4da9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2012, 2017-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012, 2017-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/kernel.h>
@@ -1016,6 +1016,7 @@ static void coresight_enable_source_link(struct list_head *path)

	return;
err:
	coresight_disable_path_from(path, nd);
	coresight_release_path(csdev, path);
}