diff options
author | 2022-07-30 09:16:58 +0530 | |
---|---|---|
committer | 2022-08-10 15:41:23 -0400 | |
commit | ad2feebd71ff80532dff75756d1103f056358614 (patch) | |
tree | 92a551b7b0db05bc1633a751d73ccde8a3597570 /lib/zstd/zstd_common_module.c | |
parent | drm/amdgpu: Only disable prefer_shadow on hawaii (diff) | |
download | wireguard-linux-ad2feebd71ff80532dff75756d1103f056358614.tar.xz wireguard-linux-ad2feebd71ff80532dff75756d1103f056358614.zip |
drm/amdgpu: double free error and freeing uninitialized null pointer
Fix a double free and an uninitialized pointer read error. Both tmp and
new are pointing at same address and both are freed which leads to
double free. Adding a check to verify if new and tmp are free in the
error_free label fixes the double free issue. new is not initialized to
null which also leads to a free on an uninitialized pointer.
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Suggested by: S. Amaranath <Amaranath.Somalapuram@amd.com>
Signed-off-by: Sebin Sebastian <mailmesebin00@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'lib/zstd/zstd_common_module.c')
0 files changed, 0 insertions, 0 deletions