VirtualBox

Ignore:
Timestamp:
Jan 2, 2015 12:40:37 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: The state memory must be zeroed. Fixed some dtrace_opens-- stuff. (r63)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c

    r53682 r53686  
    1255312553        state = ddi_get_soft_state(dtrace_softstate, minor);
    1255412554#else
    12555         state = kmem_alloc(sizeof (*state), KM_SLEEP);
     12555        state = kmem_zalloc(sizeof (*state), KM_SLEEP);
    1255612556        if (!state) {
    1255712557            return (NULL);
     
    1506715067                if (--dtrace_opens == 0 && dtrace_anon.dta_enabling == NULL)
    1506815068                        (void) kdi_dtrace_set(KDI_DTSET_DTRACE_DEACTIVATE);
     15069#else
     15070                dtrace_opens--;
    1506915071#endif
    1507015072                mutex_exit(&dtrace_lock);
     
    1511915121        if (--dtrace_opens == 0 && dtrace_anon.dta_enabling == NULL)
    1512015122                (void) kdi_dtrace_set(KDI_DTSET_DTRACE_DEACTIVATE);
     15123#else
     15124        dtrace_opens--;
    1512115125#endif
    1512215126
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