From: Wei Yongjun Date: Tue, 18 Jun 2013 13:09:12 +0000 (+0800) Subject: Thermal: x86_pkg_temp: fix krealloc() misuse in in pkg_temp_thermal_device_add() X-Git-Tag: v3.11-rc3~30^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7c1b3112e643d290471abd0f3b27ffeec6f28dd;p=pandora-kernel.git Thermal: x86_pkg_temp: fix krealloc() misuse in in pkg_temp_thermal_device_add() If krealloc() returns NULL, it doesn't free the original. So any code of the form 'foo = krealloc(foo, ...);' is almost certainly a bug. Signed-off-by: Wei Yongjun Signed-off-by: Zhang Rui --- Reading git-diff-tree failed