]> git.baikalelectronics.ru Git - kernel.git/commit
Input: serio_raw - explicitly mark disconnected ports as dead
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Oct 2011 01:31:04 +0000 (18:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Oct 2011 01:35:13 +0000 (18:35 -0700)
commit4e4c09874ef54d419f2aff78ed2be6543b6def58
tree0e486981ec3f8b9783c06bb3955476012538e268
parent23e6cffed90b9c165a3b30965b5be23f3851eabc
Input: serio_raw - explicitly mark disconnected ports as dead

Instead of relying on setting serio_raw->serio to NULL upon disconnecting
ports mark them explicitly as "dead". Also take and carry reference to
underlying serio port to make sure it does not go away until we are done
with it.

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/serio_raw.c