Input: fix input_free_device() implementation
authorDmitry Torokhov <dtor_core@ameritech.net>
Tue, 14 Mar 2006 05:09:05 +0000 (00:09 -0500)
committerDmitry Torokhov <dtor_core@ameritech.net>
Tue, 14 Mar 2006 05:09:05 +0000 (00:09 -0500)
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>

No differences found