]> 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)
commit951b03506d1e4186643e3b0c438844a60bd7324a
tree722e857992e1459ace48e01f2046a7f1c8685ce9
parentbfa6fa2a2dfa997f6c80e35808e50464ecfebcda
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