mirror of https://github.com/acidanthera/audk.git
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:
parent
adc863cbd4
commit
23f642e80a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue