From: Dan Carpenter Date: Wed, 22 Dec 2010 21:07:33 +0000 (+0300) Subject: Staging: ste_rmi4: use after input_unregister_device() X-Git-Tag: v2.6.38-rc3~8^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f32b8453e5a5587ae112ba478ae0bbad74e83d22;p=pandora-kernel.git Staging: ste_rmi4: use after input_unregister_device() The original code called input_free_device(rmi4_data->input_dev) after input_unregister_device(rmi4_data->input_dev) and that's a double free. This is described in the comments to input_unregister_device(). The normal way to handle this is to make input_register_device() the last function in the probe which can fail. That way you can avoid the call to input_unregister_device() entirely. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed