Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1774072imm; Thu, 27 Sep 2018 02:13:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV61UEuAStmmevUPbF9k+yI5Jt7axrVDVGlfSbq+5JKqEil2NSb2PQCMUBRCCogH//7VgsUMz X-Received: by 2002:a63:c34a:: with SMTP id e10-v6mr4780416pgd.240.1538039636075; Thu, 27 Sep 2018 02:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538039636; cv=none; d=google.com; s=arc-20160816; b=J7/a2LuEeIJWp+oPwaIK0ZAaKdiyO/jEHJuRvdVx8sNtiectuPDWgTaIXKZgAdNcLy P1oRZGK8Y7cTTWtMkHYzpdyH/ScZ7l6SXSvZtMlNy6IzGbb5UXk8JbND2XjWP3haxqeI RSRDzfyyA4wpLR28h2TSnniyRIHaEQQlg6OycS0T5nyvp5bETBSNc7uHcp0Rx6787tUN MMeNKQjDIqtndJ801KLWsuLa+9xr904tHjKSWpxuOYSo1NUAi8sbb1kABfcSqQdJvgg7 kGNmvJNdbG84PcH1ruttvaQw/2FZv/Fge7KsHt8peU/cPlfTDQ9ukP731/fqFKuG9dux 0SIw== 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=pNngDCGVlvUjUvcEwnwBfxqyEhLkD+h3wxmvK2f8ohI=; b=Isrl+5Zx1gm85dtX/kFUsJlMBpcbXICoUEO+gmG94UchGf6cX/dd8qzsSlUV/o2T9A 3YfOBrN1pVCgFbDx71sUtTi6cdYss0Xgd7perfrhDYLjUeBZzT5nuTTGNroxg80bM222 hDWYE2FUi0YWgTMjsyueYkcI4t39eefWmLWaXzaHgU0Y8igvAtIrM43E0hH6tRYPDg7I 9JJ/vO7q0sscRXUmVMUjmMXjsiHf6+0P4oYG8woFeBIOtSy7cFRluyajouW509a7dBQi TmLxx+u/Bkpx0R78KM8mDecUfDCBmRQfOrumzyQOblHug69/PVJQrmRWAefw0X4U/MOP NHjA== 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 p24-v6si1509703plr.510.2018.09.27.02.13.41; Thu, 27 Sep 2018 02:13:56 -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 S1728618AbeI0PaB (ORCPT + 99 others); Thu, 27 Sep 2018 11:30:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55392 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728607AbeI0PaA (ORCPT ); Thu, 27 Sep 2018 11:30:00 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 487441117; Thu, 27 Sep 2018 09:12:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pinzhen Xu , Mario Limonciello , "Darren Hart (VMware)" Subject: [PATCH 4.18 42/88] platform/x86: dell-smbios-wmi: Correct a memory leak Date: Thu, 27 Sep 2018 11:03:23 +0200 Message-Id: <20180927090305.874661525@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 affab51082174f60ef71ced8ab5fbe71f00e9ae3 upstream. ACPI buffers were being allocated but never freed. Reported-by: Pinzhen Xu 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/dell-smbios-wmi.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/platform/x86/dell-smbios-wmi.c +++ b/drivers/platform/x86/dell-smbios-wmi.c @@ -78,6 +78,7 @@ static int run_smbios_call(struct wmi_de dev_dbg(&wdev->dev, "result: [%08x,%08x,%08x,%08x]\n", priv->buf->std.output[0], priv->buf->std.output[1], priv->buf->std.output[2], priv->buf->std.output[3]); + kfree(output.pointer); return 0; }