OpenCloudOS-Kernel/drivers/thermal/int340x_thermal
Zhang Rui ad0f409051 int340x_thermal/processor_thermal_device: return failure when
there is no ACPI device object

processor_thermal_device driver needs ACPI support to work. Thus, the driver
probing should fail when there is no ACPI device object asscociated.

This fixes a NULL pointer dereference when the driver is loaded
with INT340X feature disabled in BIOS.

Reported-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Chen Yu <yu.c.chen@intel.com>
2015-01-06 08:18:21 +08:00
..
Makefile thermal: int340x: Introduce processor reporting device 2014-12-24 10:37:35 +08:00
acpi_thermal_rel.c ACPI/int340x_thermal: enumerate INT340X devices even if they're not in _ART/_TRT 2015-01-06 08:17:06 +08:00
acpi_thermal_rel.h Thermal: int340x_thermal: expose acpi thermal relationship tables 2014-10-11 09:35:48 +08:00
int3400_thermal.c thermal: int340x_thermal: drop owner assignment from platform_drivers 2014-12-22 11:06:42 +08:00
int3402_thermal.c thermal: int340x_thermal: drop owner assignment from platform_drivers 2014-12-22 11:06:42 +08:00
int3403_thermal.c Thermal/int340x/int3403: Free acpi notification handler 2014-12-24 10:37:44 +08:00
processor_thermal_device.c int340x_thermal/processor_thermal_device: return failure when 2015-01-06 08:18:21 +08:00