[lkml]   [2020]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net: core: devlink.c: Hold devlink->lock from the beginning of devlink_dpipe_table_register()
Sun, Feb 23, 2020 at 12:22:33PM CET, wrote:
>From: Madhuparna Bhowmik <>
>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 <>
>Signed-off-by: Madhuparna Bhowmik <>

Reviewed-by: Jiri Pirko <>

 \ /
  Last update: 2020-02-23 19:18    [W:0.063 / U:2.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site