ACPI video: correct error-handling code
authorZhang Rui <rui.zhang@intel.com>
Wed, 29 Jul 2009 00:53:29 +0000 (08:53 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 30 Dec 2009 06:51:07 +0000 (01:51 -0500)
commite01ce79b7f6ebc5b57128ee058811aa8f9059319
tree733b3b5aac2bc87a60b67bfe8ba75f3006a97d48
parent6b7b284958d47b77d06745b36bc7f36dab769d9b
ACPI video: correct error-handling code

backlight_device_register may return an ERR_PTR
value rather than a valid pointer.

Problem found by Julia Lawall, properly fixed by Zhang Rui.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c