android_kernel_oneplus_msm8998/drivers/usb/class
Johan Hovold 0ab4186bf2 USB: cdc-acm: fix TIOCMIWAIT
commit 18266403f3fe507f0246faa1d5432333a2f139ca 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>
2016-11-18 10:48:35 +01:00
..
cdc-acm.c USB: cdc-acm: fix TIOCMIWAIT 2016-11-18 10:48:35 +01:00
cdc-acm.h cdc-acm: fix wrong pipe type on rx interrupt xfers 2016-09-07 08:32:43 +02:00
cdc-wdm.c cdc-wdm: error returns need to be translated 2015-03-26 10:51:57 +01:00
Kconfig
Makefile
usblp.c usblp: do not set TASK_INTERRUPTIBLE before lock 2015-11-19 16:31:42 -08:00
usbtmc.c Revert "usbtmc: convert to devm_kzalloc" 2016-10-07 15:23:47 +02:00