Re: [PATCH 1/2] dwc3: gadget: fix setting of pending_sgs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

(subject format, please prepend 'usb:')

Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx> writes:

> In the dwc3_prepare_trbs_sg routine, when all data from request was
> handled pending_sgs should be set to the number of mapped sgs that are
        ^^
        ,

> not queued up.
>
> Currently the code will result in pending_sgs == queued_sgs. That
> variables value will likely not be zero and break dwc3_prepare_trbs.
  ^^^^^^^^^
  variable's

you say it's 'likely'. Got any minimal reproduction method?

> This patch fixes the setting of the variable to its intended purpose.
>
> Signed-off-by: Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx>

please add Fixes tag and Cc stable

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux