USB HID: hiddev - fix race between hiddev_send_event() and hiddev_release()
authorJiri Kosina <jkosina@suse.cz>
Thu, 10 May 2007 06:45:56 +0000 (08:45 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 10 May 2007 06:45:56 +0000 (08:45 +0200)
commitcdcb44e87bedcf5070eece61f89f9373a3810031
treed9d1fdaa3b0e7789e0064377e3dedbd3ab6b9376
parentfe7ba31feadcc2cdb7749a8ed14960f989cbd021
USB HID: hiddev - fix race between hiddev_send_event() and hiddev_release()

There is a small race window in which hiddev_release() could corrupt the
list that is being processed for new event in hiddev_send_event().
Synchronize the operations over this list.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hiddev.c