mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
Revert "drm/i915: Fix NULL ptr deref by checking new_crtc_state"
This reverts commit 1d5b09f8da.
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
This commit is contained in:
parent
91077d1deb
commit
58456143cc
|
|
@ -1132,7 +1132,7 @@ intel_prepare_plane_fb(struct drm_plane *_plane,
|
|||
* This should only fail upon a hung GPU, in which case we
|
||||
* can safely continue.
|
||||
*/
|
||||
if (new_crtc_state && intel_crtc_needs_modeset(new_crtc_state)) {
|
||||
if (intel_crtc_needs_modeset(new_crtc_state)) {
|
||||
ret = add_dma_resv_fences(old_obj->resv,
|
||||
&new_plane_state->uapi);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user