coresight: Propagate symlink failure
authorJeremy Linton <jeremy.linton@arm.com>
Mon, 14 Jun 2021 17:59:01 +0000 (11:59 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 07:31:26 +0000 (09:31 +0200)
commit51dd19a7e9f8fbbb7cd92b8a357091911eae7f78
tree73913b2efbdda076d2047dc2f8c3b2548d31a9bb
parent5fae8a946ac2df879caf3f79a193d4766d00239b
coresight: Propagate symlink failure

If the symlink is unable to be created, the driver goes
ahead and continues device creation. Instead lets propagate
the failure, and fail the probe.

Link: https://lore.kernel.org/r/20210526204042.2681700-1-jeremy.linton@arm.com
Fixes: 8a7365c2d418 ("coresight: Expose device connections via sysfs")
Cc: stable@vger.kernel.org
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20210614175901.532683-7-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-core.c