From patchwork Thu Jun 2 14:39:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 9150493 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 8B63C6074E for ; Thu, 2 Jun 2016 14:39:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D25E282ED for ; Thu, 2 Jun 2016 14:39:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 724E628304; Thu, 2 Jun 2016 14:39:30 +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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60B8E282ED for ; Thu, 2 Jun 2016 14:39:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 426576EBE6; Thu, 2 Jun 2016 14:39:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-x242.google.com (mail-qg0-x242.google.com [IPv6:2607:f8b0:400d:c04::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A7616EBF4 for ; Thu, 2 Jun 2016 14:39:20 +0000 (UTC) Received: by mail-qg0-x242.google.com with SMTP id l75so16088906qgd.3 for ; Thu, 02 Jun 2016 07:39:20 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=eem3GXpmevHXNYJdkXEOvLfo6PCONBSYi4m363iGYF4=; b=eiNjnV4yRBCQhnB4DnCHxA2ngmE3NbYH8MceEK4FPFv+cyudk+KGr2IWNN/01EYxf7 WkRs9K/Fkw91b0B1ScJR8ZWkpoNNIdD+WCBwyfd2HUQftTL2wJJ/Uv9Oio6h9tSA1XzH UIgil32mnxkJQVfD7YO3ySUFYXGRFQWcBjP1brZNR1LCw0pLmEzSjackFrEFE7SNYPG0 Uy0O3HGoRh4r4fiVhYy3yksFxUDY+gYgzw9SsEPY/P321f+lqikSAVzuHCgrZVDDR+wN uxsn6DsHETUrkTvgp71+QjhCL45S1dRcm3WNvgcWoaYz+D7goo+MW1kh5cDby1a6ir1O Onvg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=eem3GXpmevHXNYJdkXEOvLfo6PCONBSYi4m363iGYF4=; b=jttdYU5y1k5ZK1xTlUlEnyzKynTb+EwmSu64m6DnTceHfSS5V7Yg89Erx9jMdwC7P1 jHcHExQ4dut8InS/RIlCbJvIk7GLar+rlFJQlegJnsxjIntz13Asw3+iyfm3NbbPrRuQ c9WCa1AiJ56ov+M+cLaapqe15kpp2l0WFI6nBNFJeswP0Hr+Dv9YK/YhkHWVIDZIX4mw BTd4vmawC0LhPEw4h5aWqLWV4bM+L8UEWV+u+m1znqWrRAYsGrr738ragGvx1yxZyE2k osMsh0yz66dr9pPXpdVswX6LhNlEvun4fOj4BN5pvwjBwxMVzPc+viuK4j6z9izBI6l3 4r3w== X-Gm-Message-State: ALyK8tLYRhr4/x6F5MyvCSbYRbXlDJ+Bl0DbMSSoCw/W4A53e8w6Y8ISL6SnvxsoCIa+Mg== X-Received: by 10.140.246.68 with SMTP id r65mr43363693qhc.80.1464878359412; Thu, 02 Jun 2016 07:39:19 -0700 (PDT) Received: from cm.localdomain (static-74-96-105-49.washdc.fios.verizon.net. [74.96.105.49]) by smtp.gmail.com with ESMTPSA id 188sm220362qhf.44.2016.06.02.07.39.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Jun 2016 07:39:18 -0700 (PDT) From: Alex Deucher X-Google-Original-From: Alex Deucher To: dri-devel@lists.freedesktop.org Subject: [PATCH 01/13] drm/amdgpu: fix mem leak in smumgr Date: Thu, 2 Jun 2016 10:39:01 -0400 Message-Id: <1464878353-16836-2-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464878353-16836-1-git-send-email-alexander.deucher@amd.com> References: <1464878353-16836-1-git-send-email-alexander.deucher@amd.com> MIME-Version: 1.0 Cc: Alex Deucher , Monk Liu 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Monk Liu Signed-off-by: Monk Liu Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c index c483baf..0728c1e3 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c @@ -81,6 +81,7 @@ int smum_init(struct amd_pp_init *pp_init, struct pp_instance *handle) int smum_fini(struct pp_smumgr *smumgr) { + kfree(smumgr->device); kfree(smumgr); return 0; }