-
由 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: NJiri Pirko <jiri@mellanox.com> Signed-off-by: NMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com> Reviewed-by: NJiri Pirko <jiri@mellanox.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
6132c1d9