aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorRyan Seto <[email protected]>2024-11-01 14:19:56 +0000
committerAlex Deucher <[email protected]>2024-11-08 16:45:30 +0000
commitbcafdc61529a48f6f06355d78eb41b3aeda5296c (patch)
treefa86131b5cc71c17160b076f714bcf6870bbe034 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/amd/display: Use region6 size in fw_meta_info (diff)
downloadkernel-bcafdc61529a48f6f06355d78eb41b3aeda5296c.tar.gz
kernel-bcafdc61529a48f6f06355d78eb41b3aeda5296c.zip
drm/amd/display: Handle dml allocation failure to avoid crash
[Why] In the case where a dml allocation fails for any reason, the current state's dml contexts would no longer be valid. Then subsequent calls dc_state_copy_internal would shallow copy invalid memory and if the new state was released, a double free would occur. [How] Reset dml pointers in new_state to NULL and avoid invalid pointer Reviewed-by: Dillon Varone <[email protected]> Signed-off-by: Ryan Seto <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions