]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9150b2619a81f4047ca82b6dc03bfcd8f9d00bd8
treef66d2aaee2905a76ec7476ee393828aabd60160d
parent783d9e60389540d0f27d0faf0084f0dd3a08ad71
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