VirtualBox

Changeset 90429 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Jul 30, 2021 1:58:59 PM (3 years ago)
Author:
vboxsync
Message:

Intel IOMMU: Fixed buggy status code handling in DMAR_LOCK_RET. bugref:9967 bugref:6695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp

    r90213 r90429  
    5959#define DMAR_LOCK_RET(a_pDevIns, a_pThisCC, a_rcBusy) \
    6060    do { \
    61         if ((a_pThisCC)->CTX_SUFF(pIommuHlp)->pfnLock((a_pDevIns), (a_rcBusy)) == VINF_SUCCESS) \
     61        int const rcLock = (a_pThisCC)->CTX_SUFF(pIommuHlp)->pfnLock((a_pDevIns), (a_rcBusy)); \
     62        if (RT_LIKELY(rcLock == VINF_SUCCESS)) \
    6263        { /* likely */ } \
    6364        else \
    64             return (a_rcBusy); \
     65            return rcLock; \
    6566    } while (0)
    6667
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette