original_kernel/drivers/hid
Oliver Neukum 079034073f HID: hiddev cleanup -- handle all error conditions properly
This is a cleanup of hiddev and fixes the following issues:

- thread safety by locking in read & ioctl, introducing a per device mutex
- race between ioctl and disconnect, introducing a flag and locking
  in form of a per low level device mutex
- race between open and other methods, making sure only successfully
  opened devices are put on the list, changing order of events
- range checking both upper and lower limits of the minor range
- make sure further calls to open fail for unplugged devices even if
  the device still has opened files
- error checking for low level open
- possible loss of wakeup events, using standard waiting macros
- race in initialisation by moving registration after full initialisation

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2009-01-04 01:00:53 +01:00
..
usbhid HID: hiddev cleanup -- handle all error conditions properly 2009-01-04 01:00:53 +01:00
Kconfig HID: force feedback driver for GreenAsia 0x12 PID 2009-01-04 01:00:53 +01:00
Makefile HID: force feedback driver for GreenAsia 0x12 PID 2009-01-04 01:00:53 +01:00
hid-a4tech.c
hid-apple.c HID: Apple ALU wireless keyboards are bluetooth devices 2008-11-28 15:09:26 +01:00
hid-belkin.c
hid-cherry.c
hid-chicony.c
hid-core.c HID: force feedback driver for GreenAsia 0x12 PID 2009-01-04 01:00:53 +01:00
hid-cypress.c
hid-debug.c
hid-dummy.c HID: force feedback driver for GreenAsia 0x12 PID 2009-01-04 01:00:53 +01:00
hid-ezkey.c
hid-gaff.c HID: force feedback driver for GreenAsia 0x12 PID 2009-01-04 01:00:53 +01:00
hid-gyration.c
hid-ids.h HID: add n-trig digitizer support 2009-01-04 01:00:51 +01:00
hid-input.c
hid-lg.c HID: automatically call usbhid_set_leds in usbhid driver 2009-01-04 01:00:50 +01:00
hid-lg.h
hid-lg2ff.c
hid-lgff.c
hid-microsoft.c
hid-monterey.c
hid-ntrig.c HID: add n-trig digitizer support 2009-01-04 01:00:51 +01:00
hid-petalynx.c
hid-pl.c HID: add USB ID for another dual gameron adapter 2008-11-20 15:55:38 +01:00
hid-samsung.c
hid-sony.c
hid-sunplus.c
hid-tmff.c
hid-zpff.c
hidraw.c HID: set proper dev.parent in hidraw 2009-01-04 01:00:52 +01:00