Hi,

On Tue, Jul 07, 2015 at 04:24:20PM +0100, Rui Miguel Silva wrote:
> When the request actual state is equal to lenght, besides setting the
> request status to done, the status variable also need to be updated.
> If not, the status will be EINPROGRESS and the transfer will never be
> set as completed.
> 
> Signed-off-by: Rui Miguel Silva <rui.si...@linaro.org>
> ---
>  drivers/usb/gadget/udc/dummy_hcd.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/gadget/udc/dummy_hcd.c 
> b/drivers/usb/gadget/udc/dummy_hcd.c
> index 181112c..f5400b8 100644
> --- a/drivers/usb/gadget/udc/dummy_hcd.c
> +++ b/drivers/usb/gadget/udc/dummy_hcd.c
> @@ -1367,8 +1367,10 @@ top:
>               /* many requests terminate without a short packet */
>               } else {
>                       if (req->req.length == req->req.actual
> -                                     && !req->req.zero)
> +                                     && !req->req.zero) {
>                               req->req.status = 0;
> +                             *status = 0;

status is set to zero on the following branch.

-- 
balbi

Attachment: signature.asc
Description: Digital signature

Reply via email to