mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
qca_tty_receive() consumes each input byte before checking whether a
completed frame needs a fresh receive skb. When the current byte completes
a frame, the driver delivers that frame and then allocates a new skb for
the next one.
If that allocation fails, the current code returns i even though data[i]
has already been consumed and may already have completed the delivered
frame. Since serdev interprets the return value as the number of accepted
bytes, this under-reports progress by one byte and can replay the final
byte of the completed frame into a fresh parser state on the next call.
Return i + 1 in that failure path so the accepted-byte count matches the
actual receive-state progress.
Fixes:
|
||
|---|---|---|
| .. | ||
| emac | ||
| ppe | ||
| rmnet | ||
| Kconfig | ||
| Makefile | ||
| qca_7k_common.c | ||
| qca_7k_common.h | ||
| qca_7k.c | ||
| qca_7k.h | ||
| qca_debug.c | ||
| qca_debug.h | ||
| qca_spi.c | ||
| qca_spi.h | ||
| qca_uart.c | ||