cpufreq: exynos: Fix for memory leak in case SoC name does not match
authorShailendra Verma <shailendra.capricorn@gmail.com>
Tue, 4 Aug 2015 07:45:16 +0000 (16:45 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 14 Aug 2015 09:33:47 +0000 (11:33 +0200)
commit62c3f2fddd438d6d8d0a3cbb195637b74c3654eb
tree6eaddd5ff1eb2b34664413d71b9e0e3b6b303084
parentf7644cbfcdf03528f0f450f3940c4985b2291f49
cpufreq: exynos: Fix for memory leak in case SoC name does not match

During probe free the memory allocated to "exynos_info" in case of
unknown SoC type.

Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
[k.kozlowski: Rebased the patch around if(of_machine_is_compatible)]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/exynos-cpufreq.c