Skip to content
Commit 6cc64770 authored by Wentao_Liang's avatar Wentao_Liang Committed by Saeed Mahameed
Browse files

net/mlx5: DR, fix a potential use-after-free bug



In line 849 (#1), "mlx5dr_htbl_put(cur_htbl);" drops the reference to
cur_htbl and may cause cur_htbl to be freed.

However, cur_htbl is subsequently used in the next line, which may result
in an use-after-free bug.

Fix this by calling mlx5dr_err() before the cur_htbl is put.

Signed-off-by: default avatarWentao_Liang <Wentao_Liang_g@163.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent f9d196bd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment