]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: belkin_sa: fix TIOCMBIS and TIOCMBIC
authorJohan Hovold <johan@kernel.org>
Wed, 22 Oct 2025 15:26:33 +0000 (17:26 +0200)
committerJohan Hovold <johan@kernel.org>
Mon, 27 Oct 2025 08:21:26 +0000 (09:21 +0100)
commitb6e0b3016187446ddef9edac03cd9d544ac63f11
tree69b51da51e6d0163c0e8adb883d992ba0a9380fb
parentdcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa
USB: serial: belkin_sa: fix TIOCMBIS and TIOCMBIC

Asserting or deasserting a modem control line using TIOCMBIS or TIOCMBIC
should not deassert any lines that are not in the mask.

Fix this long-standing regression dating back to 2003 when the
tiocmset() callback was introduced.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/belkin_sa.c