diff options
author | Ville Syrjälä <[email protected]> | 2024-11-07 18:11:14 +0200 |
---|---|---|
committer | Joonas Lahtinen <[email protected]> | 2024-11-12 11:08:06 +0200 |
commit | 67e023b93d69e5a21b16f9602656a803d314e825 (patch) | |
tree | 178e792e0748da8a5af0c933ddecc41fc1ed7aac /drivers/usb/cdns3/cdns3-ti.c | |
parent | db0fc586edde83ff7ff65fea56c4f72dae511764 (diff) |
drm/i915: Grab intel_display from the encoder to avoid potential oopsies
Grab the intel_display from 'encoder' rather than 'state'
in the encoder hooks to avoid the massive footgun that is
intel_sanitize_encoder(), which passes NULL as the 'state'
argument to encoder .disable() and .post_disable().
TODO: figure out how to actually fix intel_sanitize_encoder()...
Fixes: ab0b0eb5c85c ("drm/i915/tv: convert to struct intel_display")
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jani Nikula <[email protected]>
(cherry picked from commit dc3806d9eb66d0105f8d55d462d4ef681d9eac59)
Signed-off-by: Joonas Lahtinen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions