diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2026-01-30 19:48:07 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-04-02 16:49:40 +0300 |
| commit | 78ba300a999179d79f4b8f479e58345c05e17baa (patch) | |
| tree | 6175a3a537cb86c451f1789138b6453ddc4702a2 /include/linux/stringify.h | |
| parent | c375d40dc77c449ded79675b6ae00d82e67559bd (diff) | |
| download | linux-78ba300a999179d79f4b8f479e58345c05e17baa.tar.xz | |
comedi: pcmmio: Add sanity checks for I/O base address
The "pcmmio" driver uses an admin-supplied configuration option
(`it->options[0]`) to configure the I/O port base address of a PCM-MIO
board. It currently allows any base address to be configured but the
hardware only supports base addresses (configured by on-board jumpers)
in the range 0 to 0xFFE0 on 32-byte boundaries.
Add a sanity check to ensure the device is not configured at an
unsupported base address.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://patch.msgid.link/20260130170416.49994-43-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
