net/mlx5: DR, Init lists that are used in rule's member
[ Upstream commit df55c5586e5185f890192a6802dc5b46fddd3606 ]
Whenever adding new member of rule object we attach it to 2 lists,
These 2 lists should be initialized first.
Fixes: 41d0707415
("net/mlx5: DR, Expose steering rule functionality")
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
caef8a7162
commit
edac9ecdf4
@ -638,6 +638,9 @@ static int dr_rule_add_member(struct mlx5dr_rule_rx_tx *nic_rule,
|
||||
if (!rule_mem)
|
||||
return -ENOMEM;
|
||||
|
||||
INIT_LIST_HEAD(&rule_mem->list);
|
||||
INIT_LIST_HEAD(&rule_mem->use_ste_list);
|
||||
|
||||
rule_mem->ste = ste;
|
||||
list_add_tail(&rule_mem->list, &nic_rule->rule_members_list);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user