Commit 80eb1bd0 authored by Pantelis Antoniou's avatar Pantelis Antoniou Committed by Marek Vasut
Browse files

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: default avatarPantelis Antoniou <panto@antoniou-consulting.com>
parent df93cd9c
......@@ -164,6 +164,9 @@ static void handle_getstatus(struct usb_request *req)
/* send status response */
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->iString = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment