Return the error status from gBS->OpenProtocol() since there are cases when the input ControllerHandle or ChildHandle is not a valid EFI_HANDLE. We should return EFI_INVALID_PARAMETER instead of EFI_UNSUPPORTED for Driver Diagnostic (2) protocol implementation.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4702 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-02-19 04:16:16 +00:00
parent adc863cbd4
commit 23f642e80a
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ IDEBusDriverDiagnosticsRunDiagnostics (
EFI_OPEN_PROTOCOL_TEST_PROTOCOL
);
if (EFI_ERROR (Status)) {
return EFI_UNSUPPORTED;
return Status;
}
Status = gBS->OpenProtocol (
@ -202,7 +202,7 @@ IDEBusDriverDiagnosticsRunDiagnostics (
EFI_OPEN_PROTOCOL_GET_PROTOCOL
);
if (EFI_ERROR (Status)) {
return EFI_UNSUPPORTED;
return Status;
}
IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (BlkIo);