# Re: \[patch net-next v3 3/7\] devlink: take device reference for devlink object

- From: Simon Horman \<horms@kernel.org\>
- Date: 2023-10-17 08:50:41 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/10/11274609
- Thread: https://ratatoskr.run/netdev/2023/10/11274247/t.md

```text
On Fri, Oct 13, 2023 at 02:10:25PM +0200, Jiri Pirko wrote:
> From: Jiri Pirko <redacted>
> 
> In preparation to allow to access device pointer without devlink
> instance lock held, make sure the device pointer is usable until
> devlink_release() is called.
> 
> Fixes: c137743bce02 ("devlink: introduce object and nested devlink relationship infra")
> Signed-off-by: Jiri Pirko <redacted>

Reviewed-by: Simon Horman <horms@kernel.org>

```
