Harish Chegondi 814d5c51f8 drm/i915: Fix possible NULL pointer dereferences in i9xx_update_wm()
Check return pointer from intel_crtc_for_plane() before dereferencing
it, as it can be NULL.

v2: Moved the NULL check into intel_crtc_active().

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Caz Yokoyama <caz.yokoyama@intel.com>
Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211217160255.1300348-1-harish.chegondi@intel.com
2022-01-07 13:33:51 -08:00
..
2021-12-13 12:05:10 +02:00
2021-10-07 11:04:05 -07:00
2021-09-20 08:06:36 -07:00
2021-12-09 09:31:45 +01:00
2021-11-02 16:47:49 -07:00
2021-10-15 10:45:50 -07:00
2021-11-22 17:35:32 +02:00
2021-03-26 09:24:31 +01:00