From: Dan Carpenter Date: Wed, 4 Apr 2012 11:19:16 +0000 (+0300) Subject: ACPI video: use after input_unregister_device() X-Git-Tag: v3.5-rc2~19^2^5~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=301f33fbcf4ced53b3de114846ecece5d6aafeeb;p=pandora-kernel.git 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 Acked-by: Dmitry Torokhov Signed-off-by: Len Brown --- Reading git-diff-tree failed