diff options
| author | Wentao_Liang <[email protected]> | 2021-08-19 14:30:05 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2021-08-26 22:15:42 +0000 |
| commit | 6cc64770fb386b10a64a1fe09328396de7bb5262 (patch) | |
| tree | 19dcf3daf00c61d52735d78f57e3013c8a90649d /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | net/mlx5e: Use correct eswitch for stack devices with lag (diff) | |
| download | kernel-6cc64770fb386b10a64a1fe09328396de7bb5262.tar.gz kernel-6cc64770fb386b10a64a1fe09328396de7bb5262.zip | |
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: Wentao_Liang <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
