Staging: quickstart: free after input_unregister_device()
authorDan Carpenter <error27@gmail.com>
Fri, 12 Nov 2010 05:04:43 +0000 (08:04 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 20:25:52 +0000 (12:25 -0800)
input_unregister_device() releases "quickstart_input" so the
input_free_device() is a double free.  Also I noticed that there is a
memory leak if the call to input_register_device() fails.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found