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)
commitb60e7f6166857c76871977794fa266b02da1f394
treee101d6548b7a841ffca1e20fd10cf54f4d80bace
parentea9f8856bd6d4ed45885b06a338f7362cd6c60e5
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