Input: serio_raw - really signal HUP upon disconnect
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 10 Jan 2012 08:45:12 +0000 (00:45 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 11 Jan 2012 07:13:21 +0000 (23:13 -0800)
commit0c62fbf6009fa338bd28bdcb14efbfc5fc0c579b
tree9f36ade52c7004e7dc8adc61b10e4c5d596aa009
parentd89c9bcb33909568905ec9c4b44a18cd8bd88aaa
Input: serio_raw - really signal HUP upon disconnect

Commit 8c1c10d5706bbb3b41cb4a5578339d67d3eeffc2 attempted to signal
POLLHUP | POLLERR condition when polling disconnected device,
unfortunately it did not do it quite correctly.

Reported-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/serio_raw.c