> -----Original Message-----
> From: Jiawei Wang <[email protected]>
> Sent: Friday, April 9, 2021 15:33
> To: Matan Azrad <[email protected]>; Shahaf Shuler
> <[email protected]>; Slava Ovsiienko <[email protected]>;
> Jiawei(Jonny) Wang <[email protected]>
> Cc: [email protected]; [email protected]
> Subject: [PATCH] net/mlx5: fix resource release issue for mirror flow
> 
> The mlx5 PMD allocated the resources of the sample actions, and then
> moved these ones to the destination actions array. The original indices were
> not cleared and the resources were referenced twice in the flow object - as
> the fate actions and in the destination actions array.
> 
> This causes the failure on flow destroy because PMD tried to release the
> same objects twice.
> 
> The patch clears the original indices, add the missed checking for zero and
> eliminates multiple object releasing.
> 
> Fixes: 00c10c22118a ("net/mlx5: update translate function for mirroring")
> Cc: [email protected]
> 
> Signed-off-by: Jiawei Wang <[email protected]>
> Reviewed-by: Suanming Mou <[email protected]>
Acked-by: Viacheslav Ovsiienko <[email protected]>

Reply via email to