From: Dmitry Torokhov Date: Sat, 8 Aug 2009 07:26:25 +0000 (-0700) Subject: ACPI: video - fix potential crash when unloading X-Git-Tag: v2.6.32-rc1~171^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4fe3b62e8d88068083218d3e42c45223b51d29;p=pandora-kernel.git 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 Acked-by: Zhang Rui Signed-off-by: Len Brown --- Reading git-diff-tree failed