Skip to content
Snippets Groups Projects
Commit fa5aaf31 authored by Mathias Nyman's avatar Mathias Nyman Committed by Sasha Levin
Browse files

xhci: prevent double-fetch of transfer and transfer event TRBs


[ Upstream commit e9fcb077 ]

The same values are parsed several times from transfer and event
TRBs by different functions in the same call path, all while processing
one transfer event.

As the TRBs are in DMA memory and can be accessed by the xHC host we want
to avoid this to prevent double-fetch issues.

To resolve this pass the already parsed values to the different functions
in the path of parsing a transfer event

Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210406070208.3406266-5-mathias.nyman@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 5372c65e ("xhci: process isoc TD properly when there was a transaction error mid TD.")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 89ed7eba
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment