]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cdc-acm: fix TIOCMIWAIT
authorJohan Hovold <johan@kernel.org>
Tue, 8 Nov 2016 12:10:57 +0000 (13:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 12:12:59 +0000 (13:12 +0100)
commit73f82d2067a16244c221801153d67e18be6769a8
tree507a2e5434a7a1c7eaeac13517f8cd53d4fedc59
parentbc9eedee9304796c0690c8f95a903dcc5308c6d6
USB: cdc-acm: fix TIOCMIWAIT

The TIOCMIWAIT implementation would return -EINVAL if any of the three
supported signals were included in the mask.

Instead of returning an error in case TIOCM_CTS is included, simply
drop the mask check completely, which is in accordance with how other
drivers implement this ioctl.

Fixes: 5b37d1e9443a ("cdc-acm: add TIOCMIWAIT")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c