Skip to content

Commit 01e2d06

Browse files
committed
Revert "drm/i915: Use crtc_state->active in primary check_plane func"
This reverts commit dec4f79. Jörg Otte reports a NULL pointder dereference due to this commit, as 'crtc_state' very much can be NULL: crtc_state = state->base.state ? intel_atomic_get_crtc_state(state->base.state, intel_crtc) : NULL; So the change to test 'crtc_state->base.active' cannot possibly be correct as-is. There may be some other minimal fix (like just checking crtc_state for NULL), but I'm just reverting it now for the rc2 release, and people like Daniel Vetter who actually know this code will figure out what the right solution is in the longer term. Reported-and-bisected-by: Jörg Otte <jrg.otte@gmail.com> Cc: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Daniel Vetter <daniel.vetter@intel.com> CC: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c83727a commit 01e2d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13276,7 +13276,7 @@ intel_check_primary_plane(struct drm_plane *plane,
1327613276
if (ret)
1327713277
return ret;
1327813278

13279-
if (crtc_state->base.active) {
13279+
if (intel_crtc->active) {
1328013280
struct intel_plane_state *old_state =
1328113281
to_intel_plane_state(plane->state);
1328213282

0 commit comments

Comments
 (0)