Dmitry Torokhov 4b4fe3b62e ACPI: video - fix potential crash when unloading
thermal_cooling_device_register() returns error encoded in a pointer
when it fails in which case we need to explictly set device->cdev
to NULL so we don't try to unregister it when unloading.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-08-29 22:58:19 -04:00
..
2009-04-05 02:14:15 -04:00
2009-04-05 02:14:15 -04:00
2009-06-17 23:32:23 -04:00
2009-04-05 02:14:15 -04:00
2009-04-05 02:14:15 -04:00