diff options
author | Eduardo Valentin | 2016-11-08 06:09:25 +0100 |
---|---|---|
committer | Zhang Rui | 2016-11-23 03:06:12 +0100 |
commit | 95e3ed1513494aa2d0aaba7a99fb7aa8b51dcfc8 (patch) | |
tree | 15319f30bef7d11b39b0d2c5f657cd505149d499 /drivers/thermal/rockchip_thermal.c | |
parent | thermal: core: improve kerneldoc entry of thermal_cooling_device_unregister (diff) | |
download | kernel-qcow2-linux-95e3ed1513494aa2d0aaba7a99fb7aa8b51dcfc8.tar.gz kernel-qcow2-linux-95e3ed1513494aa2d0aaba7a99fb7aa8b51dcfc8.tar.xz kernel-qcow2-linux-95e3ed1513494aa2d0aaba7a99fb7aa8b51dcfc8.zip |
thermal: core: use kzalloc(sizeof(*ptr),...)
As a safety check, this patch changes thermal
core to check for pointer content size, instead of type size,
while allocating memory.
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/rockchip_thermal.c')
0 files changed, 0 insertions, 0 deletions