# \[PATCH\] coresight: Propagate symlink failure

- Subsystems: ARM/CORESIGHT FRAMEWORK AND DRIVERS, HARDWARE TRACING FACILITIES, THE REST
- Maintainers: Suzuki K Poulose, Alexander Shishkin, Linus Torvalds
- Status: LANDED (51dd19a7e9f8 · 2021-06-15 07:31)
- Landed in mainline as 51dd19a7e9f8 on 2021-06-15.
- List: linux-arm-kernel
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-arm-kernel/2021/05/1393202/t

## \[PATCH\] coresight: Propagate symlink failure

- From: Jeremy Linton \<hidden\>
- Date: 2021-05-26 20:53:09 
- Message: https://ratatoskr.run/linux-arm-kernel/2021/05/1393202.md

```text
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.

Signed-off-by: Jeremy Linton <redacted>
---
 drivers/hwtracing/coresight/coresight-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c
index 6c68d34d956e..2dc4b0110442 100644
--- a/drivers/hwtracing/coresight/coresight-core.c
+++ b/drivers/hwtracing/coresight/coresight-core.c
@@ -1392,7 +1392,7 @@ static int coresight_fixup_device_conns(struct coresight_device *csdev)
 		}
 	}
 
-	return 0;
+	return ret;
 }
 
 static int coresight_remove_match(struct device *dev, void *data)
-- 
2.31.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```

## Re: \[PATCH\] coresight: Propagate symlink failure

- From: Mathieu Poirier \<mathieu.poirier@linaro.org\>
- Date: 2021-05-27 15:51:48 
- Message: https://ratatoskr.run/linux-arm-kernel/2021/05/1394254.md

```text
On Wed, May 26, 2021 at 03:40:42PM -0500, Jeremy Linton wrote:
> 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.
> 
> Signed-off-by: Jeremy Linton <redacted>
> ---
>  drivers/hwtracing/coresight/coresight-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c
> index 6c68d34d956e..2dc4b0110442 100644
> --- a/drivers/hwtracing/coresight/coresight-core.c
> +++ b/drivers/hwtracing/coresight/coresight-core.c
> @@ -1392,7 +1392,7 @@ static int coresight_fixup_device_conns(struct coresight_device *csdev)
>  		}
>  	}
>  
> -	return 0;
> +	return ret;

I have applied your patch.

Thanks,
Mathieu

>  }
>  
>  static int coresight_remove_match(struct device *dev, void *data)
> -- 
> 2.31.1
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
