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

Commits on Sep 12, 2023

  1. devices/pci: return error if type of bar is not correct

    Return error instead of panic.
    
    Signed-off-by: Jiaqi Gao <[email protected]>
    gaojiaqi7 committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    26ea43c View commit details
    Browse the repository at this point in the history
  2. pci/devices: fix the potential integer overflow

    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 committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    fa956d0 View commit details
    Browse the repository at this point in the history