summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>2018-11-30 09:56:02 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-11-30 12:00:38 -0500
commitfb6e4709e32ce2c8eae2ca03d2175c3c24adbc54 (patch)
tree55fbd100bc3d3b68ff2444620143a984bcc55fb9 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent58124bf8f4a6ee4c91845d3b48712e1ee8876bdc (diff)
drm/amd/display: Fix NULL ptr deref for commit_planes_to_stream
[Why] With scaling, underscan and abm changes we can end up calling commit_planes_to_stream in commit_tail. This call uses dm_state->context which can be NULL if the commit was a fast update. [How] Use dc_state instead since that can't be NULL unless the system ran out of memory. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108912 Fixes: e64abff2f133 ("drm/amd/display: Use private obj helpers for dm_atomic_state") Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions