From: Dmitry Torokhov Date: Tue, 14 Mar 2006 05:09:05 +0000 (-0500) Subject: Input: fix input_free_device() implementation X-Git-Tag: v2.6.17-rc1~15^2~18 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=493a7e0d5614c30e1f3e56d59ab774300a2609f2;p=pandora-kernel.git 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 --- Reading git-diff-tree failed