mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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:
parent
5133d1f1d2
commit
9913dce8ae
@ -199,7 +199,7 @@ NvmExpressComponentNameGetControllerName (
|
|||||||
Status = EfiTestChildHandle (
|
Status = EfiTestChildHandle (
|
||||||
ControllerHandle,
|
ControllerHandle,
|
||||||
ChildHandle,
|
ChildHandle,
|
||||||
&gEfiPciIoProtocolGuid
|
&gEfiNvmExpressPassThruProtocolGuid
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return Status;
|
return Status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user