Input: fix input module refcounting
authorDmitry Torokhov <dtor@insightbb.com>
Thu, 14 Sep 2006 05:32:14 +0000 (01:32 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Thu, 14 Sep 2006 05:32:14 +0000 (01:32 -0400)
commit655816e49867082d13ece0da31d76e12cc0de4a5
tree6217dd7134def6cccdc90d41491c87c32591a2f4
parent66e66118837ed95a299328437c2d9fb4b5137352
Input: fix input module refcounting

Now that input_free_device is basically an alias for input_put_device
we need to acquire a reference to input module right when we allocate
device because input_dev_release releases reference to input module
unconditionally.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c