VirtualBox

Ignore:
Timestamp:
Dec 16, 2009 1:59:51 PM (15 years ago)
Author:
vboxsync
Message:

Never call unlock if supdrvLdrLock failed during cleanup.

File:
1 edited

Legend:

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

    r25336 r25428  
    783783     * Loaded images needs to be dereferenced and possibly freed up.
    784784     */
    785     supdrvLdrLock(pDevExt);
     785    int rcLock = supdrvLdrLock(pDevExt);
     786    if (rcLock != VINF_SUCCESS)
     787        Log(("supdrvLdrLock failed with rc=%d\n", rcLock));
    786788    Log2(("freeing images:\n"));
    787789    if (pSession->pLdrUsage)
     
    802804        }
    803805    }
    804     supdrvLdrUnlock(pDevExt);
     806    if (rcLock == VINF_SUCCESS)
     807        supdrvLdrUnlock(pDevExt);
    805808    Log2(("freeing images - done\n"));
    806809
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