diff options
author | Harald Welte <laforge@osmocom.org> | 2020-07-09 22:52:16 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-07-09 20:57:07 +0000 |
commit | 80df1a9fb2821dd8c84b2fd17e1838dd61ae5428 (patch) | |
tree | 775396fa5acc4d0c7e8afaa834af937a92cb7e2d | |
parent | c5c5a1e7c5d528f68aa4669a39e1d0f3e94007db (diff) |
usb.c: Fix error introducing Tx underflows
In Change-Id I7d4d4ab39cb3e7e6a7eb8e738a367122eb3fbee2 I inroduced
a bug that would cause e1_usb_xfer_out() to return four bytes too
little, which in turn causes E1 Tx underflows to happen in the device
firmware.
Change-Id: I71675d4de781421286f0d1febedfdb1f7b523c38
-rw-r--r-- | src/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,7 +135,7 @@ e1_usb_xfer_out(struct e1_usb_flow *flow, uint8_t *buf, int size) memset(buf, 0xff, 4); - return e1_line_mux_out(line, buf+4, fts); + return e1_line_mux_out(line, buf+4, fts) + 4; } static int |