diff options
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c index b84a6918a700..537479641c8e 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | |||
@@ -529,7 +529,7 @@ out: | |||
529 | } | 529 | } |
530 | } | 530 | } |
531 | 531 | ||
532 | kfree(flow_group_in); | 532 | kvfree(flow_group_in); |
533 | return err; | 533 | return err; |
534 | } | 534 | } |
535 | 535 | ||
@@ -1097,7 +1097,7 @@ static void esw_vport_enable_egress_acl(struct mlx5_eswitch *esw, | |||
1097 | vport->egress.drop_grp = drop_grp; | 1097 | vport->egress.drop_grp = drop_grp; |
1098 | vport->egress.allowed_vlans_grp = vlan_grp; | 1098 | vport->egress.allowed_vlans_grp = vlan_grp; |
1099 | out: | 1099 | out: |
1100 | kfree(flow_group_in); | 1100 | kvfree(flow_group_in); |
1101 | if (err && !IS_ERR_OR_NULL(vlan_grp)) | 1101 | if (err && !IS_ERR_OR_NULL(vlan_grp)) |
1102 | mlx5_destroy_flow_group(vlan_grp); | 1102 | mlx5_destroy_flow_group(vlan_grp); |
1103 | if (err && !IS_ERR_OR_NULL(acl)) | 1103 | if (err && !IS_ERR_OR_NULL(acl)) |
@@ -1259,7 +1259,7 @@ out: | |||
1259 | mlx5_destroy_flow_table(vport->ingress.acl); | 1259 | mlx5_destroy_flow_table(vport->ingress.acl); |
1260 | } | 1260 | } |
1261 | 1261 | ||
1262 | kfree(flow_group_in); | 1262 | kvfree(flow_group_in); |
1263 | } | 1263 | } |
1264 | 1264 | ||
1265 | static void esw_vport_cleanup_ingress_rules(struct mlx5_eswitch *esw, | 1265 | static void esw_vport_cleanup_ingress_rules(struct mlx5_eswitch *esw, |