]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/NvmExpressDxe: Fix wrong logic in GetControllerName()
authorAnbazhagan, Baraneedharan <anbazhagan@hp.com>
Tue, 1 Dec 2015 00:40:37 +0000 (00:40 +0000)
committererictian <erictian@Edk2>
Tue, 1 Dec 2015 00:40:37 +0000 (00:40 +0000)
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

MdeModulePkg/Bus/Pci/NvmExpressDxe/ComponentName.c

index 60849aea0356c67ba1813aaf92a329fef1d10f51..855a1b13c637cc53218df5951db0f3908ecc1aa6 100644 (file)
@@ -199,7 +199,7 @@ NvmExpressComponentNameGetControllerName (
     Status = EfiTestChildHandle (\r
                ControllerHandle,\r
                ChildHandle,\r
-               &gEfiPciIoProtocolGuid\r
+               &gEfiNvmExpressPassThruProtocolGuid\r
                );\r
     if (EFI_ERROR (Status)) {\r
       return Status;\r