https://github.com/torvalds/linux
Revision 18266403f3fe507f0246faa1d5432333a2f139ca authored by Johan Hovold on 08 November 2016, 12:10:57 UTC, committed by Greg Kroah-Hartman on 10 November 2016, 12:12:59 UTC
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")
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>
1 parent 7309aa8
History
Tip revision: 18266403f3fe507f0246faa1d5432333a2f139ca authored by Johan Hovold on 08 November 2016, 12:10:57 UTC
USB: cdc-acm: fix TIOCMIWAIT
Tip revision: 1826640
File Mode Size
Kconfig -rw-r--r-- 67.1 KB
Makefile -rw-r--r-- 1.2 KB
calibrate.c -rw-r--r-- 8.5 KB
do_mounts.c -rw-r--r-- 14.6 KB
do_mounts.h -rw-r--r-- 1.4 KB
do_mounts_initrd.c -rw-r--r-- 3.4 KB
do_mounts_md.c -rw-r--r-- 8.2 KB
do_mounts_rd.c -rw-r--r-- 8.3 KB
init_task.c -rw-r--r-- 770 bytes
initramfs.c -rw-r--r-- 13.8 KB
main.c -rw-r--r-- 25.0 KB
noinitramfs.c -rw-r--r-- 1.5 KB
version.c -rw-r--r-- 1.2 KB

back to top