summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2025-07-07 13:15:55 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-24 08:56:28 +0200
commit8c20a5cb9879988cba9a6cd0ae0765b2e38fd2a2 (patch)
tree71a802a37e3b2076debff285181a780dde2e0892 /kernel
parent992d600f284e719242a434166e86c1999649b71c (diff)
comedi: Fix some signed shift left operations
commit ab705c8c35e18652abc6239c07cf3441f03e2cda upstream. 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: stable@vger.kernel.org # 5.13+ Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Link: https://lore.kernel.org/r/20250707121555.65424-1-abbotti@mev.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions