VirtualBox

Changeset 25434 in vbox


Ignore:
Timestamp:
Dec 16, 2009 3:01:29 PM (15 years ago)
Author:
vboxsync
Message:

SUPDrv.c: Failing to take the loader lock is fatal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r25430 r25434  
    618618void VBOXCALL supdrvCleanupSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession)
    619619{
    620     int                 rc, rcLock;
     620    int                 rc;
    621621    PSUPDRVBUNDLE       pBundle;
    622622    LogFlow(("supdrvCleanupSession: pSession=%p\n", pSession));
     
    783783     * Loaded images needs to be dereferenced and possibly freed up.
    784784     */
    785     rcLock = supdrvLdrLock(pDevExt);
    786     if (rcLock != VINF_SUCCESS)
    787         Log(("supdrvLdrLock failed with rc=%d\n", rcLock));
     785    supdrvLdrLock(pDevExt);
    788786    Log2(("freeing images:\n"));
    789787    if (pSession->pLdrUsage)
     
    804802        }
    805803    }
    806     /* Calling supdrvLdrUnlock when the above lock failed raises a fatal exception in Windows. */
    807     if (rcLock == VINF_SUCCESS)
    808         supdrvLdrUnlock(pDevExt);
     804    supdrvLdrUnlock(pDevExt);
    809805    Log2(("freeing images - done\n"));
    810806
     
    40764072{
    40774073#ifdef SUPDRV_USE_MUTEX_FOR_LDR
    4078     return RTSemMutexRequest(pDevExt->mtxLdr, RT_INDEFINITE_WAIT);
     4074    int rc = RTSemMutexRequest(pDevExt->mtxLdr, RT_INDEFINITE_WAIT);
    40794075#else
    4080     return RTSemFastMutexRequest(pDevExt->mtxLdr);
     4076    int rc = RTSemFastMutexRequest(pDevExt->mtxLdr);
    40814077#endif
     4078    AssertRC(rc);
     4079    return rc;
    40824080}
    40834081
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