diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2022-09-03 14:49:39 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-09-24 10:06:31 +0200 |
| commit | f315c1acba84fe17cd92a05e6c1c1bf26ee6bd43 (patch) | |
| tree | ebdb2565913a6a0f3ba173858a1b1929eb61372a /scripts/gdb/linux/lists.py | |
| parent | 0d51573df3e0d944a644dbe90cdb06afefe77cc4 (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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions
