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

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