diff options
| author | Sebin Sebastian <[email protected]> | 2022-07-30 09:16:58 +0530 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-08-10 15:41:23 -0400 |
| commit | ad2feebd71ff80532dff75756d1103f056358614 (patch) | |
| tree | 92a551b7b0db05bc1633a751d73ccde8a3597570 /lib/mpi/mpi-internal.h | |
| parent | a6250bdb6c4677ee77d699b338e077b900f94c0c (diff) | |
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 <[email protected]>
Suggested by: S. Amaranath <[email protected]>
Signed-off-by: Sebin Sebastian <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions