kernel-fxtec-pro1x/drivers/thermal
Guenter Roeck 204dd1d39c thermal: Fix potential NULL pointer accesses
The type parameter in thermal_zone_device_register and
thermal_cooling_device_register can be NULL, indicating that no sysfs attribute
for the type should be created. Only call strlen() and strcpy() on type if it is
not NULL.

This patch addresses Coverity #102180 and #102182: Dereference before null check

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2012-09-24 14:44:38 +08:00
..
Kconfig thermal: add Renesas R-Car thermal sensor support 2012-09-24 14:44:37 +08:00
Makefile thermal: add Renesas R-Car thermal sensor support 2012-09-24 14:44:37 +08:00
rcar_thermal.c thermal: add Renesas R-Car thermal sensor support 2012-09-24 14:44:37 +08:00
spear_thermal.c Thermal: Remove tc1/tc2 in generic thermal layer. 2012-09-24 14:44:36 +08:00
thermal_sys.c thermal: Fix potential NULL pointer accesses 2012-09-24 14:44:38 +08:00