Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c7c1b311 authored by Wei Yongjun's avatar Wei Yongjun Committed by Zhang Rui
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent f3ed0a17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment