cpufreq: s3c2416: double free on driver init error path
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Feb 2017 13:19:06 +0000 (16:19 +0300)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 06:16:29 +0000 (07:16 +0100)
commit40cfe451debb10d983378f72868359a17656be8a
tree2c6b6c6189f81318f7725ed1ad3847b3084f62fb
parent04d006963029d0346be966d1c5e6147995d08b8d
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: Willy Tarreau <w@1wt.eu>
drivers/cpufreq/s3c2416-cpufreq.c