summaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/hil_mlc.c
diff options
context:
space:
mode:
authorDmitry Torokhov2006-03-14 06:09:05 +0100
committerDmitry Torokhov2006-03-14 06:09:05 +0100
commit493a7e0d5614c30e1f3e56d59ab774300a2609f2 (patch)
treeb0da1f3a92d03ca821060e4f48bf440cc12c4969 /drivers/input/serio/hil_mlc.c
parentMerge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 (diff)
downloadkernel-qcow2-linux-493a7e0d5614c30e1f3e56d59ab774300a2609f2.tar.gz
kernel-qcow2-linux-493a7e0d5614c30e1f3e56d59ab774300a2609f2.tar.xz
kernel-qcow2-linux-493a7e0d5614c30e1f3e56d59ab774300a2609f2.zip
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>
Diffstat (limited to 'drivers/input/serio/hil_mlc.c')
0 files changed, 0 insertions, 0 deletions