summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-pxa.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2024-03-08 16:05:28 -0700
committerAlex Williamson <alex.williamson@redhat.com>2024-03-11 13:08:52 -0600
commit7447d911af699a15f8d050dfcb7c680a86f87012 (patch)
tree1c3316e6a276bb0155727fdc0f2763bbf18536e2 /drivers/pwm/pwm-pxa.c
parent675daf435e9f8e5a5eab140a9864dfad6668b375 (diff)
downloadlinux-stable-7447d911af699a15f8d050dfcb7c680a86f87012.tar.gz
linux-stable-7447d911af699a15f8d050dfcb7c680a86f87012.tar.bz2
linux-stable-7447d911af699a15f8d050dfcb7c680a86f87012.zip
vfio/fsl-mc: Block calling interrupt handler without trigger
The eventfd_ctx trigger pointer of the vfio_fsl_mc_irq object is initially NULL and may become NULL if the user sets the trigger eventfd to -1. The interrupt handler itself is guaranteed that trigger is always valid between request_irq() and free_irq(), but the loopback testing mechanisms to invoke the handler function need to test the trigger. The triggering and setting ioctl paths both make use of igate and are therefore mutually exclusive. The vfio-fsl-mc driver does not make use of irqfds, nor does it support any sort of masking operations, therefore unlike vfio-pci and vfio-platform, the flow can remain essentially unchanged. Cc: Diana Craciun <diana.craciun@oss.nxp.com> Cc: <stable@vger.kernel.org> Fixes: cc0ee20bd969 ("vfio/fsl-mc: trigger an interrupt via eventfd") Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Link: https://lore.kernel.org/r/20240308230557.805580-8-alex.williamson@redhat.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/pwm/pwm-pxa.c')
0 files changed, 0 insertions, 0 deletions