diff options
author | Javi Merino <javi.merino@arm.com> | 2015-03-20 21:20:13 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2015-05-05 07:27:54 +0300 |
commit | 0cdf97e1ad8d796313de051528f06c1b16f3a679 (patch) | |
tree | c549490cf55763470c4e07b2767c126a65bec3d8 /Documentation/thermal | |
parent | 95d079ef6710e0f60dd87d887a3cfee5bf25af5f (diff) | |
download | linux-0cdf97e1ad8d796313de051528f06c1b16f3a679.tar.xz |
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>
Diffstat (limited to 'Documentation/thermal')
0 files changed, 0 insertions, 0 deletions