VirtualBox

Ignore:
Timestamp:
Jul 30, 2021 10:18:24 PM (4 years ago)
Author:
vboxsync
Message:

Dev*: Check PDMDevHlpCritSectEnter return status better. bugref:6695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r89196 r90445  
    729729static void lsilogicR3FinishContextReply(PPDMDEVINS pDevIns, PLSILOGICSCSI pThis, uint32_t u32MessageContext)
    730730{
    731     int rc;
    732 
    733731    LogFlowFunc(("pThis=%#p u32MessageContext=%#x\n", pThis, u32MessageContext));
    734732
     
    736734
    737735    /* Write message context ID into reply post queue. */
    738     rc = PDMDevHlpCritSectEnter(pDevIns, &pThis->ReplyPostQueueCritSect, VINF_SUCCESS);
    739     AssertRC(rc);
     736    int rc = PDMDevHlpCritSectEnter(pDevIns, &pThis->ReplyPostQueueCritSect, VINF_SUCCESS);
     737    PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->ReplyPostQueueCritSect, rc);
    740738
    741739    /* Check for a entry in the queue. */
     
    792790         */
    793791# ifdef IN_RING3
    794         int rc;
    795792        /* Grab a free reply message from the queue. */
    796         rc = PDMDevHlpCritSectEnter(pDevIns, &pThis->ReplyFreeQueueCritSect, VINF_SUCCESS);
    797         AssertRC(rc);
     793        int rc = PDMDevHlpCritSectEnter(pDevIns, &pThis->ReplyFreeQueueCritSect, VINF_SUCCESS);
     794        PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->ReplyFreeQueueCritSect, rc);
    798795
    799796        /* Check for a free reply frame. */
     
    822819        /* Write low 32bits of reply frame into post reply queue. */
    823820        rc = PDMDevHlpCritSectEnter(pDevIns, &pThis->ReplyPostQueueCritSect, VINF_SUCCESS);
    824         AssertRC(rc);
     821        PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->ReplyPostQueueCritSect, rc);
    825822
    826823        /* Check for a entry in the queue. */
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