summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-07-28 15:22:31 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-16 20:43:20 (GMT)
commitb189f8eb27153daaaa464d7bfec9c5a8ed2989a0 (patch)
treeea58022cbf85f895e12f8e7cc649cd278551bffa /drivers/usb
parentbbae08213e6e9811a2d3ece7ba95b1ac0e21f47c (diff)
downloadlinux-b189f8eb27153daaaa464d7bfec9c5a8ed2989a0.tar.xz
staging: comedi: comedi_fops: do not call blocking ops when !TASK_RUNNING
commit cef988642cdac44e910a27cb6e8166c96f86a0df upstream. Comedi's read and write file operation handlers (`comedi_read()` and `comedi_write()`) currently call `copy_to_user()` or `copy_from_user()` whilst in the `TASK_INTERRUPTIBLE` state, which falls foul of the `might_fault()` checks when enabled. Fix it by setting the current task state back to `TASK_RUNNING` a bit earlier before calling these functions. Reported-by: Piotr Gregor <piotrgregor@rsyncme.org> Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions