drm/i915/display: Use intel_crtc_destroy_state instead kfree
authorSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 10 Oct 2023 18:31:00 +0000 (00:01 +0530)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Oct 2023 21:40:28 +0000 (00:40 +0300)
commit146f278975972bf0e241b6ae90591c5afa1435e4
treeaa89f146d2eef6cffcada3ae52164012335f0e90
parent2250c7ead8ad95185249d24cf169e4f2b07dcc1a
drm/i915/display: Use intel_crtc_destroy_state instead kfree

intel_encoder_current_mode() seems to leak some resource because
it uses kfree instead of intel_crtc_destroy_state let us fix that.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231010183101.704439-2-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_display.c