From: Javi Merino Date: Fri, 20 Mar 2015 18:20:13 +0000 (+0000) Subject: thermal: cpu_cooling: Check memory allocation of power_table X-Git-Tag: omap-for-v4.3/legacy-v2-signed~141^2^2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cdf97e1ad8d796313de051528f06c1b16f3a679;p=pandora-kernel.git 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 Cc: Zhang Rui Reported-by: kbuild test robot Signed-off-by: Javi Merino Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed