diff options
| author | Pali Rohár <[email protected]> | 2021-09-24 23:06:43 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-10-01 11:07:13 +0200 |
| commit | 00a1deed1c8d5005499ac7a3c1c337de27102eee (patch) | |
| tree | 51d2b215d7f65738a4f4055b38d98086099e0807 /scripts/const_structs.checkpatch | |
| parent | a050a862a76de1203e59f4c8793affdc5a0d34db (diff) | |
tools: kwboot: Fix kwboot_xm_sendblock() function when kwboot_tty_recv() fails
When kwboot_tty_recv() fails or times out, it does not set the `c`
variable to NAK. The variable is then compared, while it holds either
an undefined value or a value from previous iteration. Set `c` to NAK so
that the other side will try to resend current block, and remove the
now unnecessary break.
In other failure cases return immediately.
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
