]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Validate encoder->possible_crtcs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 11 Feb 2020 16:22:07 +0000 (18:22 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Mar 2020 16:38:27 +0000 (18:38 +0200)
commit0df10823743311f31a067c26e2a3c6fa6dc867e9
tree11410c875329a1963693e1a8c59b2352cd4e15d1
parent74d2aacbe84042d89f572a3112a146fca05bfcb1
drm: Validate encoder->possible_crtcs

WARN if the encoder possible_crtcs is effectively empty or contains
bits for non-existing crtcs.

v2: Move to drm_mode_config_validate() (Daniel)
    Make the docs say we WARN when this is wrong (Daniel)
    Extract full_crtc_mask()

Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200211162208.16224-7-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_mode_config.c
include/drm/drm_encoder.h