mirror-linux/drivers/comedi
Ian Abbott 542f5248cb comedi: comedi_test: fix check for valid scan_begin_src in waveform_ai_cmdtest()
Commit 783ddaebd3 ("staging: comedi: comedi_test: support
scan_begin_src == TRIG_FOLLOW") neglected to add a test that
`scan_begin_src` has only one bit set.  The allowed values are
`TRIG_FOLLOW` and `TRIG_TIMER`, but the code incorrectly also allows
`TRIG_FOLLOW | TRIG_TIMER`.  Add a call to
`comedi_check_trigger_is_unique()` to check that only one trigger source
bit is set.

Fixes: 783ddaebd3 ("staging: comedi: comedi_test: support scan_begin_src == TRIG_FOLLOW")
Cc: stable <stable@kernel.org>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260422162138.36003-1-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-05-21 10:34:04 +02:00
..
drivers comedi: comedi_test: fix check for valid scan_begin_src in waveform_ai_cmdtest() 2026-05-21 10:34:04 +02:00
kcomedilib comedi: remove unnecessary module_init/exit functions 2026-04-02 15:49:54 +02:00
Kconfig comedi: Correct name of ACCES I/O Products 2026-04-02 15:49:48 +02:00
Makefile
TODO
comedi_buf.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
comedi_fops.c mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
comedi_internal.h comedi: Use reference count for asynchronous command functions 2025-11-26 14:19:41 +01:00
comedi_pci.c comedi: remove unnecessary module_init/exit functions 2026-04-02 15:49:54 +02:00
comedi_pcmcia.c comedi: remove unnecessary module_init/exit functions 2026-04-02 15:49:54 +02:00
comedi_usb.c comedi: remove unnecessary module_init/exit functions 2026-04-02 15:49:54 +02:00
drivers.c Linux 7.0-rc7 2026-04-06 09:04:53 +02:00
proc.c comedi: Move the main COMEDI headers 2021-11-26 16:48:59 +01:00
range.c comedi: Fix getting range information for subdevices 16 to 255 2026-01-16 16:42:15 +01:00