From patchwork Sun Oct 2 21:06:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 9359787 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 ACE53601C0 for ; Sun, 2 Oct 2016 21:06:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6700128994 for ; Sun, 2 Oct 2016 21:06:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43CA8289A1; Sun, 2 Oct 2016 21:06:59 +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=ham 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 DB07128994 for ; Sun, 2 Oct 2016 21:06:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CAAB489C63; Sun, 2 Oct 2016 21:06:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6541689BF1; Sun, 2 Oct 2016 21:06:53 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id b201so6651804wmb.1; Sun, 02 Oct 2016 14:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=k5w2mqDt8LT6Nw/fTR8vxz990j6vxqqXqtVcnX/uSeU=; b=goMC+FVPeR0uhQ3ClnA1CaHDgfBvMo+plNf2YFhBvMSytM3zIvvCD6xUTESbuJQaZh /qUqIBvRDXZK6beAeqMm9m2xeROg9WVAzJp35sbiqzM2J+xw34uErAkLBbtjyHQkQAV1 Ep+AST0fs5skkaxUaOgo8tPEX9yMVaacUAp0wLvaTsvG4UNw9AoRuCM2tcacjKut75Ih blm5NTHO8Lv0apSAZ0flvueWWjhZwN5lXs4dFbNpwbxtd4+4I7V7DPZPBCSPNdlW79OA H7+U5j2bzjesWrK1TJvA28GOvHfUsbMCY4yTON50ZHgXyhCZFep4t3gRguVxkA0VRB1t ThWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=k5w2mqDt8LT6Nw/fTR8vxz990j6vxqqXqtVcnX/uSeU=; b=ii9IZ/urBD3UEi4lSs8UbR+LJ/8VrbOLKtfS2Om6dwcYCgAq9NYbeSQ7ONWd2qBl/p 9c9J/4iw0R5mjdSnLFu33q3OnTfGxNyAIfE3m4XBJdaGDRAYcQOzUZjrvTFgyGTmtddh AhzXGXnuNpRwXfWiAw+t/yBuff2+A9xKVlN9PSk2Ng13uhJ2ot+Q6+8e1J72T0y4/h8V 7hcjpGeQPfy9w3tylJMSYg/fvRdTeaPclHiXX/xDjFut3VQ5OR3FBaPaIuzC+TcFnn1w crCx0sohd1FaChEXrLBiCJcimho3dgqVRhORtWsb+Mqm0vgU9Ve+FdybVSM0+WkPKNGs h/8Q== X-Gm-Message-State: AA6/9RkS9nr/mby7+nG7s9sU2SiD/9Mcd+lUcUyeM2qIHONMylPpkDX4XpLzT5Fz4WT2rw== X-Received: by 10.194.178.65 with SMTP id cw1mr14335421wjc.215.1475442411994; Sun, 02 Oct 2016 14:06:51 -0700 (PDT) Received: from localhost.localdomain ([5.20.238.37]) by smtp.gmail.com with ESMTPSA id m140sm744716wma.21.2016.10.02.14.06.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Oct 2016 14:06:51 -0700 (PDT) From: Grazvydas Ignotas To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Subject: [PATCH] drm/amdgpu/dce11: add missing drm_mode_config_cleanup call Date: Mon, 3 Oct 2016 00:06:45 +0300 Message-Id: <1475442406-2096-2-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP All other amdgpu/dce_v* files have this call, it's only mysteriously missing from dce_v11_0.c since the file was added and causes leaks. Fixes: aaa36a976bbb ("drm/amdgpu: Add initial VI support") Signed-off-by: Grazvydas Ignotas --- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c index 0bed302..2696428 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c @@ -3075,6 +3075,7 @@ static int dce_v11_0_sw_fini(void *handle) dce_v11_0_afmt_fini(adev); + drm_mode_config_cleanup(adev->ddev); adev->mode_info.mode_config_initialized = false; return 0;