This patch is following
2c656af04d7f.
1. Fix typo "XHC" to "EHC".
2. Reinitialize Request(Phy/Map) and Data(Phy/Map)
in Urb, otherwise the last time value of them may
be used in error handling when error happens.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
EDKII_IOMMU_PPI *IoMmu;\r
EFI_PEI_PPI_DESCRIPTOR PpiDescriptor;\r
//\r
- // EndOfPei callback is used to stop the XHC DMA operation\r
+ // EndOfPei callback is used to stop the EHC DMA operation\r
// after exit PEI phase.\r
//\r
EFI_PEI_NOTIFY_DESCRIPTOR EndOfPeiNotifyList;\r
if (Urb->Qh == NULL) {\r
goto ON_ERROR;\r
}\r
- \r
+\r
+ Urb->RequestPhy = NULL;\r
+ Urb->RequestMap = NULL;\r
+ Urb->DataPhy = NULL;\r
+ Urb->DataMap = NULL;\r
+\r
//\r
// Map the request and user data\r
//\r
\r
Urb->RequestPhy = (VOID *) ((UINTN) PhyAddr);\r
Urb->RequestMap = Map;\r
- } else {\r
- Urb->RequestPhy = NULL;\r
- Urb->RequestMap = NULL;\r
}\r
\r
if (Data != NULL) {\r
\r
Urb->DataPhy = (VOID *) ((UINTN) PhyAddr);\r
Urb->DataMap = Map;\r
- } else {\r
- Urb->DataPhy = NULL;\r
- Urb->DataMap = NULL;\r
}\r
\r
Status = EhcCreateQtds (Ehc, Urb);\r