aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_bios.c
diff options
context:
space:
mode:
authorHans de Goede <j.w.r.degoede@gmail.com>2018-02-14 09:21:50 +0100
committerHans de Goede <hdegoede@redhat.com>2018-02-14 11:38:11 +0100
commite1b86c85f6c2029c31dba99823b6f3d9e15eaacd (patch)
tree0a7bfa02860cf19136765c6cc5e042282aa0d59a /drivers/gpu/drm/i915/intel_bios.c
parentdrm/i915: Add intel_bios_cleanup() function (diff)
downloadlinux-dev-e1b86c85f6c2029c31dba99823b6f3d9e15eaacd.tar.xz
linux-dev-e1b86c85f6c2029c31dba99823b6f3d9e15eaacd.zip
drm/i915: Free memdup-ed DSI VBT data structures on driver_unload
Make intel_bios_cleanup function free the DSI VBT data structures which are memdup-ed by parse_mipi_config() and parse_mipi_sequence(). Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180214082151.25015-2-hdegoede@redhat.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_bios.c')
-rw-r--r--drivers/gpu/drm/i915/intel_bios.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
index ea1ed84a1e7d..92e52bb65c41 100644
--- a/drivers/gpu/drm/i915/intel_bios.c
+++ b/drivers/gpu/drm/i915/intel_bios.c
@@ -1623,6 +1623,12 @@ void intel_bios_cleanup(struct drm_i915_private *dev_priv)
dev_priv->vbt.sdvo_lvds_vbt_mode = NULL;
kfree(dev_priv->vbt.lfp_lvds_vbt_mode);
dev_priv->vbt.lfp_lvds_vbt_mode = NULL;
+ kfree(dev_priv->vbt.dsi.data);
+ dev_priv->vbt.dsi.data = NULL;
+ kfree(dev_priv->vbt.dsi.pps);
+ dev_priv->vbt.dsi.pps = NULL;
+ kfree(dev_priv->vbt.dsi.config);
+ dev_priv->vbt.dsi.config = NULL;
}
/**