]> Git Repo - linux.git/commit
devlink: take device reference for devlink object
authorJiri Pirko <[email protected]>
Fri, 13 Oct 2023 12:10:25 +0000 (14:10 +0200)
committerDavid S. Miller <[email protected]>
Wed, 18 Oct 2023 08:23:01 +0000 (09:23 +0100)
commita380687200e0f7f0e00d745796fd8b8ea4bcb746
tree517100bbf98f84c5c7239677a70f0ce5b0288204
parentc503bc7df602257e9d03851654a347649a33f3c3
devlink: take device reference for devlink object

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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/devlink/core.c
This page took 0.055849 seconds and 4 git commands to generate.