[PATCH] drm/i915: Correctly refcount connectors in hw state readou
Daniel Vetter
daniel.vetter at ffwll.ch
Fri May 6 13:09:43 UTC 2016
This was forgotten when adding the the refcounting to
drm_connector_state.
Cc: Gabriel Feceoru <gabriel.feceoru at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Marius Vlad <marius.c.vlad at intel.com>
Cc: Dave Airlie <airlied at redhat.com>
Fixes: d2307dea14a4 ("drm/atomic: use connector references (v3)")
---
drivers/gpu/drm/i915/intel_display.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 45c218db86be..d26429c77c10 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -12028,6 +12028,8 @@ static void intel_modeset_update_connector_atomic_state(struct drm_device *dev)
connector->base.encoder;
connector->base.state->crtc =
connector->base.encoder->crtc;
+
+ drm_connector_reference(&connector->base);
} else {
connector->base.state->best_encoder = NULL;
connector->base.state->crtc = NULL;
--
2.5.0
More information about the dri-devel
mailing list