cpufreq: exynos5440: Fix potential NULL pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 18 Sep 2013 05:14:53 +0000 (10:44 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Sep 2013 01:25:58 +0000 (03:25 +0200)
commit116decb7e48b46a8c171bd47f377fa527067f788
treef66d2aaee2905a76ec7476ee393828aabd60160d
parent26ca8694344af4c833d22590c5b77d6b9cff0722
cpufreq: exynos5440: Fix potential NULL pointer dereference

If 'dvfs_info' is NULL (due to devm_kzalloc failure) the failure
error message would try to dereference it. Use 'pdev' instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/exynos5440-cpufreq.c