]> 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)
commite5539b0295324a1cde852869b6e7d07c3a07fd2b
treea4d6bdabf69318a4b4c2e29a4ad2d712f6ff9fd7
parentb631dfed3728f45ff087650678268d0a72379154
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