commit | 493a7e0d5614c30e1f3e56d59ab774300a2609f2 | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dtor_core@ameritech.net> | Tue Mar 14 00:09:05 2006 -0500 |
committer | Dmitry Torokhov <dtor_core@ameritech.net> | Tue Mar 14 00:09:05 2006 -0500 |
tree | b0da1f3a92d03ca821060e4f48bf440cc12c4969 | |
parent | 58a343f22e8ef987b90e34bbef7f1455e3bb5a15 [diff] |
Input: fix input_free_device() implementation input_free_device can't just call kfree because if input_register_device fails after successfully registering corresponding class device there is a chance that someone could get a reference to it. We need to use input_put_device() to make sure that we don't delete input device until last reference to it was dropped. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>