Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7277310imu; Wed, 14 Nov 2018 14:43:33 -0800 (PST) X-Google-Smtp-Source: AJdET5dHrZ6TqfAH4UWj24g4F3TpxOwzRIInj/Pv8qbS1Yx1sFXxfWCMaDlOmF5o0cTDKeGEzNbR X-Received: by 2002:a63:104d:: with SMTP id 13mr3471538pgq.303.1542235413804; Wed, 14 Nov 2018 14:43:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235413; cv=none; d=google.com; s=arc-20160816; b=bdvlqlVRKumPI4OPnDmJmfCVGGSn69OfX+o2TGYLz/kulXF76AUNWPcRLL4J/cG39y cR34V/FX1n+ej0Y0h+xio+j4uf5oraFy/bUP6EKkeQZfYcCsKsrtWTrbbkEKbMGKruND GpTB1hPO6Gj2dLQTCaQdPzkXXNBaiwtG1J6UlEG1ayQwnFd8/AfBD+4/s9ICJNds+VNJ 36UYWNhpZiV5j6/8de/CS4UxvBwECaXylppJ22Ko72lhR+4uMroXEZZmh5oYQXrnhP26 66smuwVwdA1IiuE8Ednb05jqp3AHbRV3Dqepj5rae8FbNYryaCZG6vdAmdOMgoKnF4g/ WTnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=APqNTufX8CR8+HTKqLC+ndKmr2kDE7Y44F4wdooZZjg=; b=H1P7YiCBWMWAWDcnrRELJBJZqr0uIdo4bstBQte4XJIavqi+x1jap6tVhUC+2PQDZW VZ+80hvRzLZvn9AYXdJCFbjJGbaNex+Y1QrughUguefNw0HSg3hrju6Zy01KQwfsGvyw q26IBjMrK5V73aOZQ3yhEi2kVGjH75TkUmjoRxxjBhJwbfgSsiYeL5k73omMoi7i8trx kZqWtUyvqvr4E9NC74pG8i3Oe646JfJ+lxMjQOpweehHl6PjRcK1srJyRFMsrNiDAb3x qZK0fDypN+Q/rvDlj82di+2XLOoGLvkeq6UtJiqEALSlDv0bkmbj8ZQroY5ZEL4lNBRe Ug0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=REjEY52L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x33-v6si25789245plb.49.2018.11.14.14.43.19; Wed, 14 Nov 2018 14:43:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=REjEY52L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387930AbeKOIrz (ORCPT + 99 others); Thu, 15 Nov 2018 03:47:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:34716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728692AbeKOI1V (ORCPT ); Thu, 15 Nov 2018 03:27:21 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D02A322529; Wed, 14 Nov 2018 22:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234137; bh=DuvpCuApMM2uaw9gXhZwxxqY9zyDSsoaBAKbUY3tMrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=REjEY52Lh22BivPe3lu50qHI42fz9nLBSw56My/JkYD+ECvCqfBNM4PsdyV0Ypqeg rTm0TjX7ar/6pAvJ3mRzHyibX89GOfkdGMHjgfsWlJ0EAqpEPU14c137LghLc3wRAL Z9X1rWK3/azszCQdiSQ1ekh3JB6EuwOZBp3Lwswo= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Harry Wentland , Alex Deucher , Sasha Levin Subject: [PATCH AUTOSEL 4.19 40/73] drm/amd/display: Stop leaking planes Date: Wed, 14 Nov 2018 17:21:34 -0500 Message-Id: <20181114222207.98701-40-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Harry Wentland [ Upstream commit 02680efbb10be0d2c867fe722ae23d588f6bebef ] [Why] drm_plane_cleanup does not free the plane. [How] Call drm_primary_helper_destroy which will also free the plane. Signed-off-by: Harry Wentland Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 6903fe6c894b..ef5c6af4d964 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3167,7 +3167,7 @@ void dm_drm_plane_destroy_state(struct drm_plane *plane, static const struct drm_plane_funcs dm_plane_funcs = { .update_plane = drm_atomic_helper_update_plane, .disable_plane = drm_atomic_helper_disable_plane, - .destroy = drm_plane_cleanup, + .destroy = drm_primary_helper_destroy, .reset = dm_drm_plane_reset, .atomic_duplicate_state = dm_drm_plane_duplicate_state, .atomic_destroy_state = dm_drm_plane_destroy_state, -- 2.17.1