]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Mon, 19 Jul 2021 08:01:24 +0000 (10:01 +0200)
commit8c2cbe41261d515a0496a56196e1eee72e930627
treeb3644174f085d86520d1bdd5154a40996d90939f
parentd5a93f9a89c693d935ab0b34937a98705b2048c9
coresight: Propagate symlink failure

commit 51dd19a7e9f8fbbb7cd92b8a357091911eae7f78 upstream.

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