diff options
author | Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com> | 2020-02-23 12:22:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 06:17:37 +0100 |
commit | 6132c1d9033d158bd0464e90bc46544fbe0bd6bc (patch) | |
tree | de670a61e2f8420d78f2fcfd0b61ecec0776fcba /drivers/net/ethernet/xilinx | |
parent | net: phy: Avoid multiple suspends (diff) | |
download | linux-6132c1d9033d158bd0464e90bc46544fbe0bd6bc.tar.xz linux-6132c1d9033d158bd0464e90bc46544fbe0bd6bc.zip |
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/ethernet/xilinx')
0 files changed, 0 insertions, 0 deletions