cpufreq: imx6q: fix error handling
authorPeng Fan <peng.fan@nxp.com>
Tue, 3 Mar 2020 02:14:49 +0000 (10:14 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 3 Mar 2020 11:16:35 +0000 (16:46 +0530)
commit3646f50a3838c5949a89ecbdb868497cdc05b8fd
tree1806e11b0b213d61b956116143759337ea1cddf3
parenta30f8a91f3c25ad7df897bf7877bad410ad19f79
cpufreq: imx6q: fix error handling

When speed checking failed, direclty jumping to put_node label
is not correct. Need jump to out_free_opp to avoid resources leak.

Fixes: 2733fb0d0699 ("cpufreq: imx6q: read OCOTP through nvmem for imx6ul/imx6ull")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/imx6q-cpufreq.c