Commit 65002eea authored by Suraj Kandpal's avatar Suraj Kandpal Committed by Ville Syrjälä

drm/i915/display: Use correct method to free crtc_state

Even though there is no leaking of resource here lets
just use the correct method to free crtc_state
Signed-off-by: default avatarSuraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231010183101.704439-3-suraj.kandpal@intel.com
parent 146f2789
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <linux/string_helpers.h> #include <linux/string_helpers.h>
#include "i915_reg.h" #include "i915_reg.h"
#include "intel_atomic.h"
#include "intel_crtc.h" #include "intel_crtc.h"
#include "intel_cx0_phy.h" #include "intel_cx0_phy.h"
#include "intel_de.h" #include "intel_de.h"
...@@ -2006,7 +2007,7 @@ int vlv_force_pll_on(struct drm_i915_private *dev_priv, enum pipe pipe, ...@@ -2006,7 +2007,7 @@ int vlv_force_pll_on(struct drm_i915_private *dev_priv, enum pipe pipe,
vlv_enable_pll(crtc_state); vlv_enable_pll(crtc_state);
} }
kfree(crtc_state); intel_crtc_destroy_state(&crtc->base, &crtc_state->uapi);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment