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)
commit7b09406390e76df97c9f5f29c23a4f56d982f22c
tree722e857992e1459ace48e01f2046a7f1c8685ce9
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
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