aboutsummaryrefslogtreecommitdiff
path: root/drivers/thermal/power_allocator.c
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2015-03-20 18:20:13 +0000
committerKevin Hilman <khilman@linaro.org>2015-09-08 09:26:47 -0700
commit953a923206afcb08ae25b3c41f77a527ce695bad (patch)
treee3a2efdb3205befd4c9e1cb0d1c2801f7761d5c9 /drivers/thermal/power_allocator.c
parenteac549eccc610e278ed9abcef83a0daa7489e450 (diff)
thermal: cpu_cooling: Check memory allocation of power_table
We allocate the power_table in memory but we don't test whether the allocation succeeded. Return -ENOMEM if kcalloc() fails. Fixes: e0128d8ab423 ("thermal: cpu_cooling: implement the power cooling device API") Cc: Eduardo Valentin <edubezval@gmail.com> Cc: Zhang Rui <rui.zhang@intel.com> Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com> (cherry picked from commit 0cdf97e1ad8d796313de051528f06c1b16f3a679) Signed-off-by: Kevin Hilman <khilman@linaro.org>
Diffstat (limited to 'drivers/thermal/power_allocator.c')
0 files changed, 0 insertions, 0 deletions