MdeModulePkg/NvmExpressDxe: Fix wrong logic in GetControllerName()

NvmExpressComponentNameGetControllerName returns EFI_UNSUPPORTED if 
child handle is passed. gEfiNvmExpressPassThruProtocolGuid needs to
be passed to EfiTestChildHandle instead of gEfiPciIoProtocolGuid.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Anbazhagan, Baraneedharan" <anbazhagan@hp.com>
Reviewed-by: "Tian, Feng" <feng.tian@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19071 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Anbazhagan, Baraneedharan 2015-12-01 00:40:37 +00:00 committed by erictian
parent 5133d1f1d2
commit 9913dce8ae
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ NvmExpressComponentNameGetControllerName (
Status = EfiTestChildHandle (
ControllerHandle,
ChildHandle,
&gEfiPciIoProtocolGuid
&gEfiNvmExpressPassThruProtocolGuid
);
if (EFI_ERROR (Status)) {
return Status;