mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
net/mlx5: E-Switch, free flow_group_in after creating the restore table
We allocate a temporary memory but forget to free it.
Fixes: 11b717d615 ("net/mlx5: E-Switch, Get reg_c0 value on CQE")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
7983a675ba
commit
c8508713c7
@@ -1566,6 +1566,8 @@ static int esw_create_restore_table(struct mlx5_eswitch *esw)
|
||||
esw->offloads.restore_group = g;
|
||||
esw->offloads.restore_copy_hdr_id = mod_hdr;
|
||||
|
||||
kvfree(flow_group_in);
|
||||
|
||||
return 0;
|
||||
|
||||
err_mod_hdr:
|
||||
|
||||
Reference in New Issue
Block a user