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)
commit93670599fc52217dcf8a69832faf66171cdb9581
treea4d6bdabf69318a4b4c2e29a4ad2d712f6ff9fd7
parent80cc0fcbdaeaf10d04ba27779a2d7ceb73d2717a
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