]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 May 2020 20:19:32 +0000 (21:19 +0100)
commitc4f3f87537f698436b4c79817df3b58b1c81dc6f
tree16c94de304c5a2d297cb05c95ae91ed2f22a5dbf
parent482735dac9aacba0638bf0562b9c37068c695880
USB: serial: ir-usb: fix IrLAP framing

commit 38c0d5bdf4973f9f5a888166e9d3e9ed0d32057a upstream.

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")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/ir-usb.c