1
0
Fork 0
alistair23-linux/drivers/staging/ste_rmi4
Dan Carpenter f32b8453e5 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 <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-20 12:01:23 -08:00
..
Kconfig staging: fix ste_rmi4 build, depends on INPUT 2010-11-16 12:31:48 -08:00
Makefile
TODO
synaptics_i2c_rmi4.c Staging: ste_rmi4: use after input_unregister_device() 2011-01-20 12:01:23 -08:00
synaptics_i2c_rmi4.h