diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-06-18 15:09:12 +0200 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-07-15 10:26:33 +0200 |
commit | c7c1b3112e643d290471abd0f3b27ffeec6f28dd (patch) | |
tree | 6bd8b56facdff4d7137cd3c64d2011331cfad448 /drivers/hwmon | |
parent | Thermal: x86 package temp thermal crash (diff) | |
download | linux-c7c1b3112e643d290471abd0f3b27ffeec6f28dd.tar.xz linux-c7c1b3112e643d290471abd0f3b27ffeec6f28dd.zip |
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions