]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't deref NULL crtc in intel_get_pipe_from_connector()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Nov 2014 09:16:01 +0000 (11:16 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Nov 2014 09:29:19 +0000 (10:29 +0100)
commitd3babd3fcd92f345ab3c627ad6bfa1463de52ba2
tree2eecff0dd418f73e0cc834c4d0e08b74046d98b0
parent2d72f6c7be9cd26485f88961f6a56fae3d9d17e9
drm/i915: Don't deref NULL crtc in intel_get_pipe_from_connector()

If the connector would have an encoder but the encoder didn't have a
crtc we might dereference a NULL crtc here. I suppose that should never
happen due to intel_sanitize_encoder(), but let's be a bit paranoid
print a warning if we ever hit this and return INVALID_PIPE to the
caller.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c