]> git.baikalelectronics.ru Git - kernel.git/commit
USB: sierra: fix characters being dropped at close
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:22:55 +0000 (19:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:03 +0000 (15:04 -0700)
commit11eb91a0e465a27d9b835ebc56e9ec42ee86655f
treea4d6bdabf69318a4b4c2e29a4ad2d712f6ff9fd7
parent63f01d219c373f086255f0b5a9c56f7206b7d391
USB: sierra: fix characters being dropped at close

Fix characters potentially being dropped at close due to missing
chars_in_buffer implementation.

Note that currently the write urbs are not even killed at close (will be
fixed separately), but this could still lead to dropped data since we
have lowered DTR/RTS.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/sierra.c