diff options
author | Jani Nikula <jani.nikula@intel.com> | 2024-12-30 17:14:45 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2025-01-03 13:28:48 +0300 |
commit | 60a43ecbd59decb77b31c09a73f09e1d4f4d1c4c (patch) | |
tree | 7476dbf53288b9f91c646d268260dc9d19ebf7af /tools/perf/scripts/python/task-analyzer.py | |
parent | efa43b751637c0e16a92e1787f1d8baaf56dafba (diff) | |
download | linux-60a43ecbd59decb77b31c09a73f09e1d4f4d1c4c.tar.xz |
drm/i915/ddi: only call shutdown hooks for valid encoders
DDI might be HDMI or DP only, leaving the other encoder
uninitialized. Calling the shutdown hook on an uninitialized encoder may
lead to a NULL pointer dereference. Check the encoder types (and thus
validity via the DP output_reg or HDMI hdmi_reg checks) before calling
the hooks.
Reported-and-tested-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Closes: https://lore.kernel.org/r/20241031105145.2140590-1-senozhatsky@chromium.org
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8b197c50e7f3be2bbc07e3935b21e919815015d5.1735568047.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions