cpufreq: s3c2416: double free on driver init error path
commitc40956d9899655af7600461b6f2e7b4845fb4a04
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Feb 2017 13:19:06 +0000 (7 16:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:35:15 +0000 (5 14:35 +0200)
tree402b2477d6bd87c72e31dc8983c16cdcb77bf120
parentfbb7b439df6d8b58ebeee8983add85abd28fbfcf
cpufreq: s3c2416: double free on driver init error path

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 <dan.carpenter@oracle.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cpufreq/s3c2416-cpufreq.c