linux/drivers/comedi
Ian Abbott ea72e2fc90 comedi: pcmmio: Add sanity check to interrupt handler
The driver requests an interrupt handler for the device, after setting
device registers to disable interrupt generation.  The interrupt handler
should not be called prematurely unless the user-configured I/O port
base address and/or IRQ number are incorrect or the hardware is bad.

For safety, check the dev->attached flag in the interrupt handler to
ensure the device has been fully set up, avoiding a possible null
pointer dereference of dev->read_subdev.

Reported-by: Jaeyoung Chung <jjy600901@snu.ac.kr>
Link: https://lore.kernel.org/lkml/20260610115912.780131-1-jjy600901@snu.ac.kr/
Reported-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Reported-by: Kyungwook Boo <bookyungwook@gmail.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260618102949.26607-10-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-17 14:55:16 +02:00
..
drivers comedi: pcmmio: Add sanity check to interrupt handler 2026-07-17 14:55:16 +02:00
kcomedilib comedi: remove unnecessary module_init/exit functions 2026-04-02 15:49:54 +02:00
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
Kconfig comedi: Correct name of ACCES I/O Products 2026-04-02 15:49:48 +02:00
Makefile
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
TODO