From 9913dce8aeb8c154ccea23be0835b2c50a8613b4 Mon Sep 17 00:00:00 2001 From: "Anbazhagan, Baraneedharan" Date: Tue, 1 Dec 2015 00:40:37 +0000 Subject: [PATCH] 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" Reviewed-by: "Tian, Feng" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19071 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/NvmExpressDxe/ComponentName.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;