Thread (2 messages) flat view 2 messages, 2 authors, 2020-02-23

Re: [PATCH] net: core: devlink.c: Hold devlink->lock from the beginning of devlink_dpipe_table_register()

From: Jiri Pirko <jiri@resnulli.us>
Date: 2020-02-23 18:17:51
Also in: linux-kernel-mentees, lkml

Sun, Feb 23, 2020 at 12:22:33PM CET, madhuparnabhowmik10@gmail.com wrote:
From: Madhuparna Bhowmik <redacted>

devlink_dpipe_table_find() should be called under either
rcu_read_lock() or devlink->lock. devlink_dpipe_table_register()
calls devlink_dpipe_table_find() without holding the lock
and acquires it later. Therefore hold the devlink->lock
from the beginning of devlink_dpipe_table_register().

Suggested-by: Jiri Pirko <redacted>
Signed-off-by: Madhuparna Bhowmik <redacted>
Reviewed-by: Jiri Pirko <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help