mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-15 06:55:17 -04:00
dfu: Properly zero out timeout value
Zero out timeout value; letting it filled with undefined values ends up with the dfu host hanging. Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
This commit is contained in:
parent
df93cd9c6f
commit
80eb1bd02d
@ -164,6 +164,9 @@ static void handle_getstatus(struct usb_request *req)
|
|||||||
|
|
||||||
/* send status response */
|
/* send status response */
|
||||||
dstat->bStatus = f_dfu->dfu_status;
|
dstat->bStatus = f_dfu->dfu_status;
|
||||||
|
dstat->bwPollTimeout[0] = 0;
|
||||||
|
dstat->bwPollTimeout[1] = 0;
|
||||||
|
dstat->bwPollTimeout[2] = 0;
|
||||||
dstat->bState = f_dfu->dfu_state;
|
dstat->bState = f_dfu->dfu_state;
|
||||||
dstat->iString = 0;
|
dstat->iString = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user