diff options
author | Pali Rohár <pali@kernel.org> | 2022-02-18 12:24:13 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-03-04 08:38:05 +0100 |
commit | 7938b3be7cedcfe54e891c86e4297b0dccde0f9f (patch) | |
tree | 1781128ca976857a8cee4298d964074cf8ca0513 /tools/patman/commit.py | |
parent | d274f922467ea20fdb517d68737a8af431a03fce (diff) |
tools: kwboot: Fix quitting terminal
Sometimes kwboot after quitting terminal prints error message:
terminal: Bad address
This is caused by trying to call write() syscall with count of (size_t)-1
bytes.
When quit sequence is split into more read() calls then number of input
bytes (nin) at the end of cycle can underflow and be negative. Fix it.
Fixes: de7514046ea5 ("tools: kwboot: Fix detection of quit esc sequence")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools/patman/commit.py')
0 files changed, 0 insertions, 0 deletions