]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: kobil_sct: fix TIOCMBIS and TIOCMBIC
authorJohan Hovold <johan@kernel.org>
Wed, 22 Oct 2025 15:26:34 +0000 (17:26 +0200)
committerJohan Hovold <johan@kernel.org>
Mon, 27 Oct 2025 08:21:49 +0000 (09:21 +0100)
commitd432df758f92c4c28aac409bc807fd1716167577
tree99718fb2893d547910324da39d3b9cab75894924
parentb6e0b3016187446ddef9edac03cd9d544ac63f11
USB: serial: kobil_sct: 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 issue dating back to 2003 when the support for
these ioctls was added with the introduction of the tiocmset() callback.

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/kobil_sct.c