Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix buffer underflow when serial peer spews garbage
A board I got spews garbage on hard reset. Sometimes that garbage is IAC and it leads to len here getting negative and the loop eventually underflows the buf. Detect and avoid this silently. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
- Loading branch information