Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1774197imm; Thu, 27 Sep 2018 02:14:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV615uQ+0sjiTU+xpb7QC8ADF+3j2LQP79cQ4NmiqIo8osuj7UTkwMywKl/hhU6ZaQZ3sJhk7 X-Received: by 2002:a17:902:b287:: with SMTP id u7-v6mr9749282plr.123.1538039643691; Thu, 27 Sep 2018 02:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538039643; cv=none; d=google.com; s=arc-20160816; b=Q+v7FB2XZ7u+2QLVBq/QH/wcdB/9oTqrYcRnxjIeFN3Wb0cuNupYjfS7UDe6oDqHVe z7Nxj8R/wGTUE3sYyCY/oh+LXM39CeApCGCx7/7w+1XYkim6EPjn7bPNgQefs/JvFOqV ggmv5DS+zKsiR7YQa7lGHgqxgMNEQ7KqKT2Im32+XG6oVbGJ10ZsraONx8TEdN80r8Jd D11Bk95JtK2VweiqZeRzHYpeCWBj/8uBT/oGcfmdwCRQm88wJUHLO9mv0UsOsR4fU1gt flwx++wbaLr0mOrnaC6h9vkZwxtrzOKUPqGwltI18AAUivxLUJzcVzUZUOUwqD9x8S6i xNSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=tkgNXQ4hiRi2+Hb3aGjcNXEJ/iqVs2c3S+O5mTDzhzc=; b=unqhO5coTP9LYOTyxt9RhYNRhan9mhn8wiW/nLNam3ZAMTF0MlAc8ftDOD+xv+Oiyi 4QcoapF12PclDcnSqEPv8xwW14tuwg0IDMjR2fN1sJND1UEIKQ1rl6gT9GawXZ3GO3CG LK4bq7SXiN7c5BCG00ogA9OO2YKbOfZAcTseMHOlZIxs7XzJtUhwGbnXA0PZDDd5ZAWU jmDpRn2TXn3NvuKcssoiBRKP1ijaFyaFp72kALeqwvVgMpqcAnl1FWpK+DyCwTC4Pp3Z EARq9NjeXIr8jgMFLtQQ+iNMNLzKTps0Xw4qvw3NlnCgt/Z4fM+2ckoqw9siwHy7im1j KXTA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3-v6si1457497plx.106.2018.09.27.02.13.48; Thu, 27 Sep 2018 02:14:03 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728626AbeI0PaI (ORCPT + 99 others); Thu, 27 Sep 2018 11:30:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55402 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728276AbeI0PaH (ORCPT ); Thu, 27 Sep 2018 11:30:07 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B7770111D; Thu, 27 Sep 2018 09:12:50 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mario Limonciello , "Darren Hart (VMware)" Subject: [PATCH 4.18 43/88] platform/x86: alienware-wmi: Correct a memory leak Date: Thu, 27 Sep 2018 11:03:24 +0200 Message-Id: <20180927090306.010176810@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180927090300.631426620@linuxfoundation.org> References: <20180927090300.631426620@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mario Limonciello commit ff0e9f26288d2daee4950f42b37a3d3d30d36ec1 upstream. An ACPI buffer that was allocated was not being freed after use. Signed-off-by: Mario Limonciello Cc: stable@vger.kernel.org Signed-off-by: Darren Hart (VMware) Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/alienware-wmi.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/platform/x86/alienware-wmi.c +++ b/drivers/platform/x86/alienware-wmi.c @@ -536,6 +536,7 @@ static acpi_status alienware_wmax_comman if (obj && obj->type == ACPI_TYPE_INTEGER) *out_data = (u32) obj->integer.value; } + kfree(output.pointer); return status; }