Skip to content

Commit 65002ee

Browse files
surajk8vsyrjala
authored andcommitted
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: Suraj Kandpal <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 146f278 commit 65002ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/display/intel_dpll.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <linux/string_helpers.h>
88

99
#include "i915_reg.h"
10+
#include "intel_atomic.h"
1011
#include "intel_crtc.h"
1112
#include "intel_cx0_phy.h"
1213
#include "intel_de.h"
@@ -2006,7 +2007,7 @@ int vlv_force_pll_on(struct drm_i915_private *dev_priv, enum pipe pipe,
20062007
vlv_enable_pll(crtc_state);
20072008
}
20082009

2009-
kfree(crtc_state);
2010+
intel_crtc_destroy_state(&crtc->base, &crtc_state->uapi);
20102011

20112012
return 0;
20122013
}

0 commit comments

Comments
 (0)