summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnbazhagan, Baraneedharan <anbazhagan@hp.com>2015-12-01 00:40:37 +0000
committererictian <erictian@Edk2>2015-12-01 00:40:37 +0000
commit9913dce8aeb8c154ccea23be0835b2c50a8613b4 (patch)
tree2c64b0cfc05cef01251ed9f20f46e9226dcbb6f7
parent5133d1f1d297db5b5d04641da98489aba118c93b (diff)
downloadedk2-platforms-9913dce8aeb8c154ccea23be0835b2c50a8613b4.tar.xz
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
-rw-r--r--MdeModulePkg/Bus/Pci/NvmExpressDxe/ComponentName.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/ComponentName.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/ComponentName.c
index 60849aea03..855a1b13c6 100644
--- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/ComponentName.c
+++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/ComponentName.c
@@ -199,7 +199,7 @@ NvmExpressComponentNameGetControllerName (
Status = EfiTestChildHandle (
ControllerHandle,
ChildHandle,
- &gEfiPciIoProtocolGuid
+ &gEfiNvmExpressPassThruProtocolGuid
);
if (EFI_ERROR (Status)) {
return Status;