]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI video: use after input_unregister_device()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Apr 2012 11:19:16 +0000 (14:19 +0300)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2012 17:41:40 +0000 (13:41 -0400)
commit619903a2e93104c44940f8ae94aa5bdf4a577025
tree2907366f7a1d5612e89a6579a5e7a57a92cfe348
parentcb35eee000257746b4f43c5086e274668dc2734b
ACPI video: use after input_unregister_device()

We can't use "input" anymore after calling input_unregister_device().
The call to input_free_device() is a double free.  The normal way to
deal with this is to make input_register_device() the last function
called in the function.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c