]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: serial: ir-usb: fix IrLAP framing
authorJohan Hovold <johan@kernel.org>
Wed, 22 Jan 2020 10:15:28 +0000 (11:15 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 23 Jan 2020 08:11:23 +0000 (09:11 +0100)
commit38c0d5bdf4973f9f5a888166e9d3e9ed0d32057a
treeed06737006891e73dc28cb65be0f3597ce860fc2
parent17a0184ca17e288decdca8b2841531e34d49285f
USB: serial: ir-usb: fix IrLAP framing

Commit f4a4cbb2047e ("USB: ir-usb: reimplement using generic framework")
switched to using the generic write implementation which may combine
multiple write requests into larger transfers. This can break the IrLAP
protocol where end-of-frame is determined using the USB short packet
mechanism, for example, if multiple frames are sent in rapid succession.

Fixes: f4a4cbb2047e ("USB: ir-usb: reimplement using generic framework")
Cc: stable <stable@vger.kernel.org> # 2.6.35
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ir-usb.c