From patchwork Tue Feb 6 14:12:38 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: 10204715 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 D8287602D8 for ; Wed, 7 Feb 2018 07:43:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5A0828D4D for ; Wed, 7 Feb 2018 07:43:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA0B328D52; Wed, 7 Feb 2018 07:43:05 +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 8B46B28D4D for ; Wed, 7 Feb 2018 07:43:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09BF76E4BE; Wed, 7 Feb 2018 07:42:41 +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 094B36E46C; Tue, 6 Feb 2018 14:12:48 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id b21so4104678wme.4; Tue, 06 Feb 2018 06:12:48 -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; bh=2MSIQqD/1LC1Usp1w+dkktiTKyFx0zgZWRSt9WOTG/A=; b=iVpOuYVZnnwWaNvQ7CLYqZC+9SWsJjJBZVUWLFR6HsLou3h9MG4sYG841r/fQqJM48 0Dmb02SfMvUG3zjMUk+Mef+H41f7QYOxKT1/5+7O+JqKNfZ6HRMQAExEGFb7afA+zneI xMTbPiZb/vXSGxeCvNNHhH02XTIQBR9wJ2KwEU4XOW2LR5YSgjLbQJMvPPQb7F4GUAGi xKr3fLP+D+oEFkk0PpFpG9Q2mUWce9E0+YZkEJkTbkA/WBQwyLGHshPZsB5nKwpzwtFD cyvbNYbDTQQ7ufl+/tK0CLE7HC/pqkPszIf/iGAiqq4p6JaicFpc+qLMSmhVdXAON6C+ bsSQ== 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; bh=2MSIQqD/1LC1Usp1w+dkktiTKyFx0zgZWRSt9WOTG/A=; b=XPGgm+npObNnIlzdzPPIyIepfgqChqGiv0E69an8t+DEh2h9w99AiB9aD+OiiTfNQt cBeO2WtWJUv9ObG3XUuqHF5WpB3QzKybTiKxbuKsCk7nwVawRPz2dzlvxduTuXBAIqNS j5pBds36D74sDf0DUm0qJLaYM/+lYGk5zlLCpYDAgAiroNv1TXlVRUp0iA25f2zGGBn3 MUB9m6HVkpNWRB+0qwRq3p/qEov+x8XVLFho7vG4GmPdzHltXOP7e+lyMh8JRPo5t6L7 MoXFkR48vEzLlFg3obfzgwPO0jVJnqwGGD/BR/I1XcUIy8P4fO9WzD9/zz0Af9ItwlSU cUBQ== X-Gm-Message-State: APf1xPA9DX1B+q6zxJVZ49S6niAyV7s5zx3nDzOTucxrf+vzz+JuuLPK rvTpdXgREaqeB5krYLLQvO0= X-Google-Smtp-Source: AH8x227S5IMkQE37FIZkgb4C42vzL7j85kMbX0BdJDPRxqjPqTMZ31rlJ+XlHmgQF9nwvMUXTgKeKA== X-Received: by 10.28.59.214 with SMTP id i205mr1860207wma.18.1517926367581; Tue, 06 Feb 2018 06:12:47 -0800 (PST) Received: from shalem.localdomain.com (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id h194sm38978479wma.8.2018.02.06.06.12.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 06:12:46 -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 v4 2/3] drm/i915: Free memdup-ed DSI VBT data structures on driver_unload Date: Tue, 6 Feb 2018 15:12:38 +0100 Message-Id: <20180206141239.993-2-hdegoede@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180206141239.993-1-hdegoede@redhat.com> References: <20180206141239.993-1-hdegoede@redhat.com> X-Mailman-Approved-At: Wed, 07 Feb 2018 07:42:28 +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 MIME-Version: 1.0 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(). Signed-off-by: Hans de Goede Reviewed-by: Ville Syrjälä --- 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 f9550507bb9f..18110bbd9ee2 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c @@ -1629,6 +1629,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; } /**