aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorFounder Fang <founder.fang@gmail.com>2012-11-21 15:20:31 +0800
committerJiri Kosina <jkosina@suse.cz>2012-11-26 14:18:15 +0100
commit7611e8d26d8dd0e5e132b46e905cb579daf9da1e (patch)
tree5cf31a59a211195fd15d9f6089b79fd64a1bebcf /drivers/input
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid (diff)
downloadlinux-dev-7611e8d26d8dd0e5e132b46e905cb579daf9da1e.tar.xz
linux-dev-7611e8d26d8dd0e5e132b46e905cb579daf9da1e.zip
HID: hidraw: fix nonblock read return EAGAIN after device removed
When nonblock read the condition check (file->f_flags & O_NONBLOCK) always be true, signal_pending and device exist checking never get a chance to run, so the user mode code always get EAGAIN even if device removed. move nonblock mode checking to the last can fix this problem. Signed-off-by: Founder Fang <founder.fang@gmail.com> Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions