linux/drivers/usb/class
Johan Hovold e847450961 USB: cdc-acm: fix TIOCMIWAIT
commit 18266403f3 upstream.

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: 5a6a62bdb9 ("cdc-acm: add TIOCMIWAIT")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-02-23 03:54:32 +00:00
..
cdc-acm.c USB: cdc-acm: fix TIOCMIWAIT 2017-02-23 03:54:32 +00:00
cdc-acm.h cdc-acm: fix wrong pipe type on rx interrupt xfers 2016-11-20 01:17:11 +00:00
cdc-wdm.c cdc-wdm: fix endianness bug in debug statements 2015-05-05 11:09:34 +01:00
Kconfig USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
Makefile USB: add USB test and measurement class driver 2008-10-17 14:40:51 -07:00
usblp.c usblp: do not set TASK_INTERRUPTIBLE before lock 2015-12-14 10:17:11 +00:00
usbtmc.c Revert "usbtmc: convert to devm_kzalloc" 2017-02-23 03:54:05 +00:00