summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>2020-02-23 14:22:33 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-24 08:17:37 +0300
commit6132c1d9033d158bd0464e90bc46544fbe0bd6bc (patch)
treede670a61e2f8420d78f2fcfd0b61ecec0776fcba /drivers/net
parent503ba7c6961034ff0047707685644cad9287c226 (diff)
downloadlinux-6132c1d9033d158bd0464e90bc46544fbe0bd6bc.tar.xz
net: core: devlink.c: Hold devlink->lock from the beginning of devlink_dpipe_table_register()
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 <jiri@mellanox.com> Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions