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
..
2010-12-07 10:47:56 -08:00
2011-01-20 12:01:23 -08:00
2011-01-15 20:07:31 -05:00
2011-01-17 17:39:39 -08:00
2010-12-16 12:25:37 -08:00
2010-12-16 12:20:06 -08:00
2010-11-19 17:17:45 -08:00
2010-11-16 12:06:47 -08:00
2011-01-13 08:03:13 -08:00
2011-01-10 16:04:53 -08:00
2010-12-10 10:46:30 -08:00
2010-12-29 08:17:15 -02:00
2010-12-29 08:17:07 -02:00
2010-12-07 10:47:56 -08:00
2010-05-14 13:16:10 -07:00
2010-11-16 12:06:47 -08:00
2010-12-07 10:47:56 -08:00
2010-12-16 12:20:05 -08:00
2011-01-10 16:04:53 -08:00
2011-01-20 11:58:27 -08:00
2010-12-16 12:23:03 -08:00
2010-12-07 10:47:56 -08:00
2010-12-07 10:47:56 -08:00
2010-12-08 14:31:01 -08:00
2011-01-07 17:02:58 -08:00
2010-11-29 11:17:27 -08:00
2011-01-13 10:05:56 -08:00
2010-10-28 09:44:56 -07:00
2011-01-13 10:05:56 -08:00
2010-10-15 15:53:27 +02:00
2010-12-09 16:29:48 -08:00
2011-01-12 20:02:44 -05:00
2010-09-04 21:23:26 -07:00
2010-11-16 12:25:52 -08:00
2010-12-16 12:17:29 -08:00
2010-10-08 07:23:46 -07:00
2010-11-16 12:25:53 -08:00
2010-12-09 16:29:48 -08:00
2010-12-10 10:39:55 -08:00
2010-12-07 10:47:56 -08:00
2010-12-22 18:57:02 +01:00
2010-10-08 07:23:45 -07:00
2010-12-30 22:29:41 -02:00
2010-12-10 10:39:55 -08:00
2010-09-30 04:14:21 -07:00
2011-01-14 09:29:05 -08:00
2011-01-17 01:50:52 -05:00
2010-12-09 16:29:49 -08:00
2011-01-10 16:04:53 -08:00
2010-12-07 10:47:56 -08:00
2011-01-20 12:01:23 -08:00
2010-10-06 08:25:06 -07:00
2011-01-10 16:04:53 -08:00
2010-12-29 08:17:21 -02:00
2011-01-10 12:26:02 -08:00
2010-12-30 22:29:39 -02:00
2011-01-20 09:13:14 -08:00
2010-11-16 12:06:47 -08:00
2010-11-16 12:06:47 -08:00
2010-11-16 10:44:50 -08:00
2010-12-01 14:45:47 -08:00
2010-11-16 12:06:47 -08:00
2010-10-05 11:56:38 -07:00
2010-11-16 10:44:50 -08:00
2010-11-09 16:34:01 -08:00
2011-01-10 16:04:53 -08:00
2011-01-13 08:03:13 -08:00
2011-01-13 08:03:13 -08:00