aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2022-09-03 14:49:39 +0200
committerMauro Carvalho Chehab <[email protected]>2022-09-24 10:06:31 +0200
commitf315c1acba84fe17cd92a05e6c1c1bf26ee6bd43 (patch)
treeebdb2565913a6a0f3ba173858a1b1929eb61372a /tools/perf/scripts/python
parent0d51573df3e0d944a644dbe90cdb06afefe77cc4 (diff)
media: atomisp: Add atomisp_pipe_check() helper
Several of the ioctl handlers all do the same checks (isp->fatal_error and asd->streaming errors) add an atomisp_pipe_check() helper for this. Note this changes the vidioc_s_fmt_vid_cap and vidioc_s_input handlers to now reject calls made while asd->streaming==STOPPING. This fixes a possible race where one thread can make this ioctls while vidioc_streamoff is running from another thread and it has temporarily released isp->mutex to kill the watchdog timers / work. Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions