From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:57938 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751860AbdGCNCm (ORCPT ); Mon, 3 Jul 2017 09:02:42 -0400 Subject: Patch "cpufreq: s3c2416: double free on driver init error path" has been added to the 3.18-stable tree To: dan.carpenter@oracle.com, gregkh@linuxfoundation.org, krzk@kernel.org, rafael.j.wysocki@intel.com, viresh.kumar@linaro.org Cc: , From: Date: Mon, 03 Jul 2017 15:02:42 +0200 Message-ID: <149908696274212@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled cpufreq: s3c2416: double free on driver init error path to the 3.18-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: cpufreq-s3c2416-double-free-on-driver-init-error-path.patch and it can be found in the queue-3.18 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From a69261e4470d680185a15f748d9cdafb37c57a33 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 7 Feb 2017 16:19:06 +0300 Subject: cpufreq: s3c2416: double free on driver init error path From: Dan Carpenter commit a69261e4470d680185a15f748d9cdafb37c57a33 upstream. The "goto err_armclk;" error path already does a clk_put(s3c_freq->hclk); so this is a double free. Fixes: 34ee55075265 ([CPUFREQ] Add S3C2416/S3C2450 cpufreq driver) Signed-off-by: Dan Carpenter Reviewed-by: Krzysztof Kozlowski Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/cpufreq/s3c2416-cpufreq.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/cpufreq/s3c2416-cpufreq.c +++ b/drivers/cpufreq/s3c2416-cpufreq.c @@ -400,7 +400,6 @@ static int s3c2416_cpufreq_driver_init(s rate = clk_get_rate(s3c_freq->hclk); if (rate < 133 * 1000 * 1000) { pr_err("cpufreq: HCLK not at 133MHz\n"); - clk_put(s3c_freq->hclk); ret = -EINVAL; goto err_armclk; } Patches currently in stable-queue which might be from dan.carpenter@oracle.com are queue-3.18/xfrm-oops-on-error-in-pfkey_msg2xfrm_state.patch queue-3.18/kvm-x86-zero-base3-of-unusable-segments.patch queue-3.18/xfrm-null-dereference-on-allocation-failure.patch queue-3.18/cpufreq-s3c2416-double-free-on-driver-init-error-path.patch