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>
Fri, 18 Nov 2016 09:48:35 +0000 (10:48 +0100)
commit0ab4186bf238e1c0eccc8d3941119839068423b4
treee293e7e9b9dafe29556bafaac3c7f0dfdb628485
parent290ffd550e34eebe42fb53d0eec755ef7b25f5e0
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: 5a6a62bdb925 ("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>
drivers/usb/class/cdc-acm.c