VirtualBox

Changeset 40898 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Apr 12, 2012 9:07:50 PM (13 years ago)
Author:
vboxsync
Message:

SUPDrv-dtrace.cpp: Don't access pHdr before consulting fZombie, duh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv-dtrace.cpp

    r40893 r40898  
    206206    AssertPtrReturnVoid(pProv);
    207207    LOG_DTRACE(("supdrvDtPOps_Provide: %p / %p pDtProbeDesc=%p\n", pProv, pProv->TracerData.DTrace.idProvider, pDtProbeDesc));
     208    size_t const            cbFnNmBuf    = _4K + _1K;
     209    char                   *pszFnNmBuf;
     210    uint16_t                idxProv;
     211
     212    if (pDtProbeDesc)
     213        return;  /* We don't generate probes, so never mind these requests. */
     214
     215    if (pProv->TracerData.DTrace.fZombie)
     216        return;
     217
     218    dtrace_provider_id_t    idProvider   = pProv->TracerData.DTrace.idProvider;
     219    AssertPtrReturnVoid(idProvider);
     220   
    208221    AssertPtrReturnVoid(pProv->pHdr);
    209222    PVTGPROBELOC            pProbeLoc    = pProv->pHdr->paProbLocs;
     
    211224    PVTGPROBELOC            pProbeLocEnd = pProv->pHdr->paProbLocsEnd;
    212225    AssertPtrReturnVoid(pProbeLocEnd);
    213     dtrace_provider_id_t    idProvider   = pProv->TracerData.DTrace.idProvider;
    214     AssertPtrReturnVoid(idProvider);
    215     size_t const            cbFnNmBuf    = _4K + _1K;
    216     char                   *pszFnNmBuf;
    217     uint16_t                idxProv;
    218 
    219     if (pDtProbeDesc)
    220         return;  /* We don't generate probes, so never mind these requests. */
    221 
    222     if (pProv->TracerData.DTrace.fZombie)
    223         return;
    224 
    225226    if (pProv->TracerData.DTrace.cProvidedProbes >= (uintptr_t)(pProbeLocEnd - pProbeLoc))
    226227        return;
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