Skip to content

Commit 5845614

Browse files
committed
Revert "drm/i915: Fix NULL ptr deref by checking new_crtc_state"
This reverts commit 1d5b09f. Now that the root cause the missing crtc state has been fixed we can get rid of the duct tape. Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250212164330.16891-3-ville.syrjala@linux.intel.com
1 parent 91077d1 commit 5845614

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_atomic_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ intel_prepare_plane_fb(struct drm_plane *_plane,
11321132
* This should only fail upon a hung GPU, in which case we
11331133
* can safely continue.
11341134
*/
1135-
if (new_crtc_state && intel_crtc_needs_modeset(new_crtc_state)) {
1135+
if (intel_crtc_needs_modeset(new_crtc_state)) {
11361136
ret = add_dma_resv_fences(old_obj->resv,
11371137
&new_plane_state->uapi);
11381138
if (ret < 0)

0 commit comments

Comments
 (0)