mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-26 19:14:18 +00:00
Serdev recv_buf() callback is supposed to return the amount of bytes
consumed, therefore an int in between 0 and count.
Do not return negative number in case of issue, when
ssam_controller_receive_buf() returns ESHUTDOWN just returns 0, e.g. no
bytes consumed, this keep the exact same behavior as it was before.
This fixes a potential WARN in serdev-ttyport.c:ttyport_receive_buf().
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| bus.c | ||
| bus.h | ||
| controller.c | ||
| controller.h | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| ssh_msgb.h | ||
| ssh_packet_layer.c | ||
| ssh_packet_layer.h | ||
| ssh_parser.c | ||
| ssh_parser.h | ||
| ssh_request_layer.c | ||
| ssh_request_layer.h | ||
| trace.h | ||