From: Pantelis Antoniou Date: Fri, 30 Nov 2012 08:01:10 +0000 (+0000) Subject: dfu: Properly zero out timeout value X-Git-Tag: v2013.04-rc2~23^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80eb1bd02d1324a6fbd3b41cf72297353496bf2a;p=u-boot 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 --- diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c index 10547e3279..a322ae5eb8 100644 --- a/drivers/usb/gadget/f_dfu.c +++ b/drivers/usb/gadget/f_dfu.c @@ -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; }