From patchwork Wed Feb 14 08:21:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 10218179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 240186055C for ; Wed, 14 Feb 2018 08:43:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10EB728F53 for ; Wed, 14 Feb 2018 08:43:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05ED728F56; Wed, 14 Feb 2018 08:43:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A9E3028F53 for ; Wed, 14 Feb 2018 08:43:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D24116E3BB; Wed, 14 Feb 2018 08:43:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7153C8994A; Wed, 14 Feb 2018 08:21:58 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id v123so20465268wmd.5; Wed, 14 Feb 2018 00:21:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XuxJaNU6mJhstWyYb/qHt09lVGzbjcxr5+z5anOGLWI=; b=Su090rWYqCJYdqXspW2ELPoN3rKhpxAtCPK0x8jWrPR2VMvRUmJyD44PfOR0K2plZz b+GrBKZuA3e7Z+U9YnsUJPRxP/dVOYAcFzVVtJQ5aUVsQ4A/3UwkTNqW0SqhTxETtiHg GLEAUr1mkSQtzU0s/dU6lhDX3BgmXVyWhAyC/cUKPlQUvyEcloypXbaCXRwGrh5GP/E4 8Wh+3PH/F2gbQ1jXQLCgVvD5fcMlYE35kOG7CnIT/QR1KlDHY4frtrM9iHLaA+iCRcsa sLKdExu/G1Ow3panfOuy+10I9xKaFR/V8+yc9tY00i09jz2+dm6swEetLA/OAIatKwIJ adCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XuxJaNU6mJhstWyYb/qHt09lVGzbjcxr5+z5anOGLWI=; b=UvP8EHNmz+koZ3e4G6RRZ9V5BEcoD0ExAseOBB5hmxZUAK17PuaDJpt5DpJj+i846i xeSmJyW/0j9exVlFAYfSeGJywksYpoCDG3B8puOcB8xnuNbHCenwbv1EBuPgJX9soUuQ 9j7dFp+sGBSlJvzoBFOqPi3PwRqxRJC5pACJq8+W+TzwiYR+V035ZSvTy16fvNTCDzN2 +FMQG7Qra8tc01tedD9PUhJWkpAXH3qCnrDaG1WVTH25rFr0CaptSpm3O2WKek8l8uPN SugAWdbJI0pFQba0fyEgCGgO+MO/GpmxuSSM3yPgvK274C/mlOpVIuGId4vr9mD34lG+ HULQ== X-Gm-Message-State: APf1xPCuJnzQTOHvzDvo+LTTHezmKSy58hmkg+A4fiy6ouRESBZK8xp3 tc/JeGtSx/k2jePenw8YbUY= X-Google-Smtp-Source: AH8x227j+oXUQIO4wlXo4R1X88zh4YPmICgAFE/6ehC7pGq+TluVGYLSlkkVwTzckEqpJmMvFTRFvA== X-Received: by 10.80.245.146 with SMTP id u18mr5863991edm.265.1518596517173; Wed, 14 Feb 2018 00:21:57 -0800 (PST) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id m37sm4528405edc.50.2018.02.14.00.21.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 00:21:56 -0800 (PST) From: Hans de Goede X-Google-Original-From: Hans de Goede To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Subject: [PATCH v5 2/3] drm/i915: Free memdup-ed DSI VBT data structures on driver_unload Date: Wed, 14 Feb 2018 09:21:50 +0100 Message-Id: <20180214082151.25015-2-hdegoede@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180214082151.25015-1-hdegoede@redhat.com> References: <20180214082151.25015-1-hdegoede@redhat.com> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 14 Feb 2018 08:42:49 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hans de Goede , intel-gfx , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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ä Signed-off-by: Hans de Goede --- drivers/gpu/drm/i915/intel_bios.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } /**