]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
MdeModulePkg/XhciDxe: fix a bug on TRB check in async int transfer
authorFeng Tian <feng.tian@intel.com>
Mon, 11 Jul 2016 03:17:05 +0000 (11:17 +0800)
committerFeng Tian <feng.tian@intel.com>
Mon, 25 Jul 2016 01:37:05 +0000 (09:37 +0800)
commitdb98a8bdb89afa29b4cedc9ffa29d3fca17e3ac9
tree05ce8a05c0ebc1ede49f2d59384d72e70a364a8e
parentbf4808d6443775c9c5170b0ca9c521e6d9c977c1
MdeModulePkg/XhciDxe: fix a bug on TRB check in async int transfer

The last TRB in transfer ring is a LINK type TRB, which shouldn't
be accounted as a valid item in IsAsyncIntTrb().

Without this fix, the original algo will bring issue on those URBs
whose TRBs crosses the transfer ring.

Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c