linux/drivers/gpu/drm/amd/display
Ryan Seto bcafdc6152 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 <dillon.varone@amd.com>
Signed-off-by: Ryan Seto <ryanseto@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-11-08 11:45:30 -05:00
..
amdgpu_dm drm/amd/display: disabling p-state checks for DCN31 and DCN314 2024-11-08 11:45:30 -05:00
dc drm/amd/display: Handle dml allocation failure to avoid crash 2024-11-08 11:45:30 -05:00
dmub drm/amd/display: Use region6 size in fw_meta_info 2024-11-08 11:45:30 -05:00
include drm/amd/display: Remove last parts of timing_trace 2024-11-04 11:26:36 -05:00
modules drm/amd/display: fix rxstatus_msg_sz type narrowing 2024-11-04 11:35:15 -05:00
Kconfig Linux 6.10-rc6 2024-07-05 10:47:28 +02:00
Makefile drm/amd/display: Refactor DCN3X into component folder 2024-06-14 16:18:55 -04:00