aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-picolcd.c
diff options
context:
space:
mode:
authorValentine Barshak <vbarshak@mvista.com>2010-12-06 18:16:11 +0300
committerJiri Kosina <jkosina@suse.cz>2010-12-07 15:45:50 +0100
commit33d6eb570b1f3fe5ba93cef465c5be66535c2c9a (patch)
treef863fc60990f851bb7d9af3d9b4791c80634becb /drivers/hid/hid-picolcd.c
parentHID: Fix race between disconnect and hiddev_ioctl (diff)
downloadlinux-dev-33d6eb570b1f3fe5ba93cef465c5be66535c2c9a.tar.xz
linux-dev-33d6eb570b1f3fe5ba93cef465c5be66535c2c9a.zip
HID: Consolidate device existence checks in hiddev_ioctl
Currently, if the device has been removed before hiddev_ioctl(), the -EIO is returned. If it's removed while hiddev_ioctl() is in progress, some commands are still processed fine, others return -ENODEV. This change takes the "existancelock" before processing ioctl commands and releases it at the end. If the device has been removed, always returns -ENODEV. Signed-off-by: Valentine Barshak <vbarshak@mvista.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-picolcd.c')
0 files changed, 0 insertions, 0 deletions