Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the potential panics in crate pci #46

Merged
merged 2 commits into from
Sep 12, 2023
Merged

Conversation

gaojiaqi7
Copy link
Contributor

Fix #45

Return error instead of panic.

Signed-off-by: Jiaqi Gao <[email protected]>
Change the return type to an option and add check for the input parameter
to prevent the potential integer overflow.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 merged commit 24b0942 into intel:main Sep 12, 2023
10 checks passed
@gaojiaqi7 gaojiaqi7 deleted the pci branch September 14, 2023 08:00
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.

Potential panics in crate pci
1 participant