aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2017-07-28 15:22:31 +0000
committerGreg Kroah-Hartman <[email protected]>2017-07-30 15:38:43 +0000
commitcef988642cdac44e910a27cb6e8166c96f86a0df (patch)
tree9d37e47ac1f93848411853aa531cb42c767cbbd9 /drivers/iio/trigger/stm32-timer-trigger.c
parentMerge tag 'iio-fixes-for-4.13a' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-cef988642cdac44e910a27cb6e8166c96f86a0df.tar.gz
kernel-cef988642cdac44e910a27cb6e8166c96f86a0df.zip
staging: comedi: comedi_fops: do not call blocking ops when !TASK_RUNNING
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 <[email protected]> Signed-off-by: Ian Abbott <[email protected]> Cc: <[email protected]> # 4.5+ Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions