]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI video: Don't start video device until its associated input device has been allocated
authorIgor Murzov <intergalactic.anonymous@gmail.com>
Fri, 30 Mar 2012 17:32:09 +0000 (21:32 +0400)
committerLen Brown <len.brown@intel.com>
Fri, 30 Mar 2012 19:47:52 +0000 (15:47 -0400)
commit876c8d966cbeb18bbba5f5de4789b9bf36e81862
treee101d6548b7a841ffca1e20fd10cf54f4d80bace
parentbf6390f7f78e7d6647f9689fc7d166f888414de2
ACPI video: Don't start video device until its associated input device has been allocated

Quoth Dmitry Torokhov:
In addition to bus notifier we do install device notifier explicitly
so it might fire up early. The easiest fox would be to move
acpi_video_bus_start_devices() after input_allocate_device() but
before input_register_device() - unregistered input devices can handle
input_event() calls just fine.

May fix crashes reported in:
https://bugzilla.kernel.org/show_bug.cgi?id=40672

Signed-off-by: Igor Murzov <e-mail@date.by>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c