]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Dec 2025 17:42:46 +0000 (18:42 +0100)
commite7edecc410886b75e9dd2b29391e1be4a6423f0a
tree5c43ac57e8b56fca560e95e5546297b764d2bdca
parent1888f286b7afeeb7a66eb30f46c9053ac8c0b25d
USB: serial: kobil_sct: fix TIOCMBIS and TIOCMBIC

commit d432df758f92c4c28aac409bc807fd1716167577 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/kobil_sct.c