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

Commit 2ccffaf9 authored by Kaixu Xia's avatar Kaixu Xia Committed by Greg Kroah-Hartman
Browse files

coresight: fixing validity check on remote device



A validity check should be made on the remote device, i.e rdev,
rather than the current device.

Signed-off-by: default avatarKaixu Xia <xiakaixu@huawei.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f7c55298
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ struct coresight_platform_data *of_get_coresight_platform_data(
				continue;

			rdev = of_coresight_get_endpoint_device(rparent);
			if (!dev)
			if (!rdev)
				continue;

			pdata->child_names[i] = dev_name(rdev);