]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Correctly refcount connectors in hw state readou
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 6 May 2016 13:39:03 +0000 (15:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 6 May 2016 14:09:12 +0000 (16:09 +0200)
commit6b93afd3d659bcba3b0deb61ef9ef670204bd2bf
tree33412551af1796fe819bda160d274dac4d4ba5ec
parent9478c23308d96f01d2495bbb2ee2b1ec5ad2a5ee
drm/i915: Correctly refcount connectors in hw state readou

This was forgotten when adding the the refcounting to
drm_connector_state.

v2: Don't forget to unreference existing connectors. This isn't
relevant on driver load, but this code also runs on resume, and there
we already have an atomic state. Spotted by Chris Wilson.

Cc: Gabriel Feceoru <gabriel.feceoru@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Marius Vlad <marius.c.vlad@intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Fixes: c199018e95ec ("drm/atomic: use connector references (v3)")
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1462541943-19620-1-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/i915/intel_display.c