cpufreq: stats: time_in_state can't be NULL in cpufreq_stats_update()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 6 Jan 2015 15:39:12 +0000 (21:09 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 22:06:44 +0000 (23:06 +0100)
commitc960f9b22d63934401949fb20d10ec4e69b535b2
tree070d80ff5d0d50cb3297f254f6d60fd2317238e2
parenta685c6d023c77303ca8700f37bf06eb85ffbf06a
cpufreq: stats: time_in_state can't be NULL in cpufreq_stats_update()

'time_in_state' can't be NULL if 'stats' is valid. These are allocated together
and only if time_in_state is allocated successfully, we update policy->stats.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_stats.c