diff options
| author | Ian Abbott <[email protected]> | 2025-07-07 12:15:55 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-07-16 12:59:01 +0000 |
| commit | ab705c8c35e18652abc6239c07cf3441f03e2cda (patch) | |
| tree | f5a7aba3a4e34729dd234ee41ec94a31e95fdf2a /tools/perf/scripts/python | |
| parent | comedi: Fail COMEDI_INSNLIST ioctl if n_insns is too large (diff) | |
| download | kernel-ab705c8c35e18652abc6239c07cf3441f03e2cda.tar.gz kernel-ab705c8c35e18652abc6239c07cf3441f03e2cda.zip | |
comedi: Fix some signed shift left operations
Correct some left shifts of the signed integer constant 1 by some
unsigned number less than 32. Change the constant to 1U to avoid
shifting a 1 into the sign bit.
The corrected functions are comedi_dio_insn_config(),
comedi_dio_update_state(), and __comedi_device_postconfig().
Fixes: e523c6c86232 ("staging: comedi: drivers: introduce comedi_dio_insn_config()")
Fixes: 05e60b13a36b ("staging: comedi: drivers: introduce comedi_dio_update_state()")
Fixes: 09567cb4373e ("staging: comedi: initialize subdevice s->io_bits in postconfig")
Cc: [email protected] # 5.13+
Signed-off-by: Ian Abbott <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
