mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02: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:
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user