diff options
author | Pawel Laszczak <[email protected]> | 2022-08-25 08:22:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-08-30 15:33:14 +0200 |
commit | d5dcc33677d7415c5f23b3c052f9e80cbab9ea4e (patch) | |
tree | 845f76495cda2a1bf778569fb836efe9798280b9 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 9d4dc16ec71bd6368548e9743223e449b4377fc7 (diff) |
usb: cdns3: fix incorrect handling TRB_SMM flag for ISOC transfer
The TRB_SMM flag indicates that DMA has completed the TD service with
this TRB. Usually it’s a last TRB in TD. In case of ISOC transfer for
bInterval > 1 each ISOC transfer contains more than one TD associated
with usb request (one TD per ITP). In such case the TRB_SMM flag will
be set in every TD and driver will recognize the end of transfer after
processing the first TD with TRB_SMM. In result driver stops updating
request->actual and returns incorrect actual length.
To fix this issue driver additionally must check TRB_CHAIN which is not
used for isochronous transfers.
Fixes: 249f0a25e8be ("usb: cdns3: gadget: handle sg list use case at completion correctly")
cc: <[email protected]>
Acked-by: Peter Chen <[email protected]>
Signed-off-by: Pawel Laszczak <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions