aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-09-03 14:49:39 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-09-24 10:06:31 +0200
commitf315c1acba84fe17cd92a05e6c1c1bf26ee6bd43 (patch)
treeebdb2565913a6a0f3ba173858a1b1929eb61372a /drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com
parentmedia: atomisp: Remove asd == NULL checks from ioctl handling (diff)
downloadlinux-dev-f315c1acba84fe17cd92a05e6c1c1bf26ee6bd43.tar.xz
linux-dev-f315c1acba84fe17cd92a05e6c1c1bf26ee6bd43.zip
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 'drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions