Skip to content

MdeModulePkg: Add IOMMU protocol NULL check#1802

Draft
AMI-HankLin wants to merge 1 commit into
microsoft:release/202511from
AMI-HankLin:user/hanklin/IommuIssueFix
Draft

MdeModulePkg: Add IOMMU protocol NULL check#1802
AMI-HankLin wants to merge 1 commit into
microsoft:release/202511from
AMI-HankLin:user/hanklin/IommuIssueFix

Conversation

@AMI-HankLin
Copy link
Copy Markdown

Add IOMMU protocol null check before call IOMMU protocol functions. This avoids IOMMU protocol function pointers is NULL.

Sign-off-by: Hank Lin hanklin@ami.com

Description

Because IOMMU protocol may be NULL in some situation so that it need to add IOMMU protocol null check mechanism before call IOMMU protocol functions.

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Let BIOS not to install IOMMU protocol and system should not assert

Integration Instructions

N/A

Add IOMMU protocol null check before call IOMMU protocol functions.
This avoids IOMMU protocol function pointers is NULL.

Sign-off-by: Hank Lin <hanklin@ami.com>
@AMI-HankLin AMI-HankLin marked this pull request as ready for review May 19, 2026 14:51
@AMI-HankLin AMI-HankLin marked this pull request as draft May 19, 2026 14:55
@mu-automation
Copy link
Copy Markdown
Contributor

mu-automation Bot commented May 19, 2026

⌛ QEMU Validation Pending

QEMU validation is pending on successful CI completion.

Note: Any previous results are available in this comment's edit history.

This comment was automatically generated by the Mu QEMU PR Validation workflow.

@AMI-HankLin
Copy link
Copy Markdown
Author

@AMI-HankLin please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="AMI"

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.

1 participant