Skip to content
Commit e01ce79b authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

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: default avatarZhang Rui <rui.zhang@intel.com>
Acked-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 6b7b2849
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment