]> git.baikalelectronics.ru Git - kernel.git/commit
Thermal/int340x: Handle properly the case when _trt or _art acpi entry is missing
authorIlkka Koskinen <ilkka.koskinen@linux.intel.com>
Tue, 9 Dec 2014 20:34:03 +0000 (12:34 -0800)
committerZhang Rui <rui.zhang@intel.com>
Sun, 21 Dec 2014 13:27:25 +0000 (21:27 +0800)
commit0737cf9b6ffcc17252e1587fe25790b71e28c455
tree722e857992e1459ace48e01f2046a7f1c8685ce9
parentc687bb41805a1238a38a086952014d5682516d9d
Thermal/int340x: Handle properly the case when _trt or _art acpi entry is missing

If either of the entries was missing, the driver tried to free memory
using uninitialized pointer. In addition, it was dereferencing null
pointer.

Signed-off-by: Ilkka Koskinen <ilkka.koskinen@linux.intel.com>
Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/int340x_thermal/acpi_thermal_rel.c