[PATCH] drm: Skip drm_mode_config_validate() for !modeset
Chris Wilson
chris at chris-wilson.co.uk
Wed Mar 18 18:31:16 UTC 2020
Quoting Ville Syrjala (2020-03-18 18:25:18)
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> drm_mode_config_init() may not have been called when the driver/device
> doesn't support modeset. That will cause drm_mode_config_validate()
> to oops. Skip the validation for !modeset.
>
> TODO: We may want to consider calling drm_mode_config_init()
> unconditionally to avoid similar issues elsewhere...
>
> Fixes: 74d2aacbe840 ("drm: Validate encoder->possible_clones")
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
More information about the dri-devel
mailing list