VirtualBox

Changeset 57605 in vbox


Ignore:
Timestamp:
Sep 3, 2015 11:00:24 AM (9 years ago)
Author:
vboxsync
Message:

Additions/solaris: check the return value of mod_remove() before doing further cleanup

Location:
trunk/src/VBox/Additions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c

    r57358 r57605  
    253253    RTLogDestroy(RTLogSetDefaultInstance(NULL));
    254254
    255     mutex_destroy(&g_LdiMtx);
    256 
    257     RTR0Term();
     255    if (!rc)
     256    {
     257        mutex_destroy(&g_LdiMtx);
     258        RTR0Term();
     259    }
    258260    return rc;
    259261}
  • trunk/src/VBox/Additions/solaris/DRM/vboxvideo_drm.c

    r57358 r57605  
    156156    cmn_err(CE_NOTE, DEVICE_NAME ":_fini\n");
    157157    int rc = mod_remove(&g_VBoxVideoSolarisModLinkage);
    158     ddi_soft_state_fini(&g_pVBoxVideoSolarisState);
     158    if (!rc)
     159        ddi_soft_state_fini(&g_pVBoxVideoSolarisState);
    159160    return rc;
    160161}
  • trunk/src/VBox/Additions/solaris/Mouse/vboxms.c

    r57358 r57605  
    292292    LogRelFlow((DEVICE_NAME ":_fini\n"));
    293293    rc = mod_remove(&g_vbmsSolModLinkage);
    294     mutex_destroy(&g_OpenNodeState.InitMtx);
     294    if (!rc)
     295        mutex_destroy(&g_OpenNodeState.InitMtx);
    295296
    296297    return rc;
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