summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xilinx
diff options
context:
space:
mode:
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>2020-02-23 12:22:33 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-24 06:17:37 +0100
commit6132c1d9033d158bd0464e90bc46544fbe0bd6bc (patch)
treede670a61e2f8420d78f2fcfd0b61ecec0776fcba /drivers/net/ethernet/xilinx
parentnet: phy: Avoid multiple suspends (diff)
downloadlinux-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