]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / video: Revert "ACPI / video: driver must be registered before checking for...
authorHans de Goede <hdegoede@redhat.com>
Thu, 14 Jan 2016 08:41:45 +0000 (09:41 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Jan 2016 21:09:06 +0000 (22:09 +0100)
commit87a8cc8c61148ae37abf83465949bb805747995d
treec7c6a2df26a86838ecd7251736134d9a84839884
parenta1a14be6f3e92a7b36d2a2f0b6ec000b6790c2f5
ACPI / video: Revert "ACPI / video: driver must be registered before checking for keypresses"

On systems with an intel video opcode region, the completion used in the
patch this commit reverts will only complete if the i915 driver loads.

If for some reason the i915 driver never loads calls to
acpi_video_handles_brightness_key_presses() may be delayed indefinitely.

This reverts commit da8351a48dfb ("ACPI / video: driver must be registered
before checking for keypresses") fixing this.

This reintroduces a potential NULL pointer deref due to using an
uninitalized mutex, this is fixed differently in a follow-up patch.

Fixes: da8351a48dfb (ACPI / video: driver must be registered before checking for keypresses)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_video.c