Message ID | 20231010183101.704439-1-suraj.kandpal@intel.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <intel-gfx-bounces@lists.freedesktop.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A52FDCD8CAE for <intel-gfx@archiver.kernel.org>; Tue, 10 Oct 2023 18:34:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1413B10E16A; Tue, 10 Oct 2023 18:34:34 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA40810E0D3 for <intel-gfx@lists.freedesktop.org>; Tue, 10 Oct 2023 18:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696962871; x=1728498871; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZGDBuyuDBDuIMEy1HTZ0l5/gxCRhF+6RkMZ8cIzy57k=; b=ExoLkvek29XHPgdBZC7YckbVSs41bAgXae2hQ5iUk90sJEw4QzSmBY+k TxKyX8MxQJzxXJr5+WgKrWcWOOT07iempt+Sd3abasyCK+rSs1Ub9lgrc A6GDd5BkTCTDKkpr5ufLiQviAJcmp8pIUPB37VyPgEj7QhwhzCFlp23I/ KzxT9oBFGYyqwK6GutPigRpOGchtGJoawcY0HfSn8mp/q6F30UVY1Mzcs UBy/3IxEKVyYx+Sykl2QJKLs+tbpNxZXR1YpvCyly305xEmLWE2w0QTLL fznCgfiAM9uacMjpiM9yabskB38f0R3nIo+Q2VqbVD56Ef8mPQhovFCTX g==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="384335678" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="384335678" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 11:32:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="819359500" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="819359500" Received: from kandpal-x299-ud4-pro.iind.intel.com ([10.190.239.32]) by fmsmga008.fm.intel.com with ESMTP; 10 Oct 2023 11:32:50 -0700 From: Suraj Kandpal <suraj.kandpal@intel.com> To: intel-gfx@lists.freedesktop.org Date: Wed, 11 Oct 2023 00:00:59 +0530 Message-Id: <20231010183101.704439-1-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-gfx] [PATCH 0/2] Use intel_crtc_destroy state X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development <intel-gfx.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/intel-gfx>, <mailto:intel-gfx-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/intel-gfx> List-Post: <mailto:intel-gfx@lists.freedesktop.org> List-Help: <mailto:intel-gfx-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/intel-gfx>, <mailto:intel-gfx-request@lists.freedesktop.org?subject=subscribe> Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" <intel-gfx-bounces@lists.freedesktop.org> |
Series |
Use intel_crtc_destroy state
|
expand
|
Use intel_crtc_destroy_state to avoid leakage of any resources instead of the usual kfree Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Suraj Kandpal (2): drm/i915/display: Use intel_crtc_destroy_state instead kfree drm/i915/display: Use correct method to free crtc_state drivers/gpu/drm/i915/display/intel_display.c | 4 ++-- drivers/gpu/drm/i915/display/intel_dpll.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-)