diff options
author | Dan Carpenter <error27@gmail.com> | 2010-12-22 21:07:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-01-20 20:01:23 (GMT) |
commit | f32b8453e5a5587ae112ba478ae0bbad74e83d22 (patch) | |
tree | 068439c3b12599a5ad9ec0ab08db88683ea0d0ad /fs/reiserfs | |
parent | 64911e4b133ff633563d6dd2b021fa1ca0608992 (diff) | |
download | linux-f32b8453e5a5587ae112ba478ae0bbad74e83d22.tar.xz |
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>
Diffstat (limited to 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions