summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/yurex.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2014-05-19 15:53:55 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 03:03:57 +0400
commit552e1f2679b7b766b8b8de3dc6d83d9cd28f28b2 (patch)
tree1e696b32dccada97e0aa1431daf1f8c8a23a0d75 /drivers/usb/misc/yurex.c
parentd846b7650db3fcca7901b6e23f6416c3601a3dfe (diff)
downloadlinux-552e1f2679b7b766b8b8de3dc6d83d9cd28f28b2.tar.xz
USB: appledisplay: fix race between reading and writing from the device
The workqueue handler may call appledisplay_bl_get_brightness() while user space calls appledisplay_bl_update_status(). As they share a buffer that must not happen. Use a mutex for mutual exclusion. Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/yurex.c')
0 files changed, 0 insertions, 0 deletions