Skip to content

Return EFI_NOT_FOUND for NULL SourceBuffer and DevicePath in LoadImage#12565

Open
MontyZhaoo wants to merge 1 commit into
tianocore:masterfrom
MontyZhaoo:master
Open

Return EFI_NOT_FOUND for NULL SourceBuffer and DevicePath in LoadImage#12565
MontyZhaoo wants to merge 1 commit into
tianocore:masterfrom
MontyZhaoo:master

Conversation

@MontyZhaoo
Copy link
Copy Markdown

Description

Update CoreLoadImageCommon to return EFI_NOT_FOUND instead of EFI_INVALID_PARAMETER when both SourceBuffer and DevicePath are NULL. UEFI 2.11 specification requires this change for LoadImage().

How This Was Tested

Successfully passed the Arm SystemReady SCT (Self-Certification Test) suite.
BS.LoadImage - ConsistencyTestCheckpoint2.

…NULL

Update CoreLoadImageCommon to return EFI_NOT_FOUND instead of
EFI_INVALID_PARAMETER when both SourceBuffer and DevicePath are NULL.
UEFI 2.11 specification requires this change for LoadImage().

Signed-off-by: jie.fu <jie.fu@cixtech.com>
Copy link
Copy Markdown
Member

@mikebeaton mikebeaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed appears to match current spec. and changes made elsewhere.

@MontyZhaoo
Copy link
Copy Markdown
Author

@lgao4 Hi, when you get a chance, could you take a look at this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants