VirtualBox

Changeset 20119 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 28, 2009 1:58:57 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47885
Message:

DevPCNet: TM locking regression (state restore).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r20087 r20119  
    38423842{
    38433843    PCNetState *pThis = PDMINS_2_DATA(pDevIns, PCNetState *);
    3844 
    3845     int rc = VERR_GENERAL_FAILURE;
     3844    int         rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY);
     3845    AssertReleaseRC(rc);
     3846
     3847    rc = VERR_GENERAL_FAILURE;
    38463848    if (pThis->cLinkDownReported <= PCNET_MAX_LINKDOWN_REPORTED)
    38473849        rc = TMTimerSetMillies(pThis->pTimerRestore, 1500);
     
    38623864        Log(("#%d pcnetTimerRestore: cLinkDownReported=%d, wait another 1500ms...\n",
    38633865             pDevIns->iInstance, pThis->cLinkDownReported));
    3864 }
    3865 
     3866
     3867    PDMCritSectLeave(&pThis->CritSect);
     3868}
    38663869
    38673870/**
     
    49544957    if (RT_FAILURE(rc))
    49554958        return rc;
    4956     TMR3TimerSetCritSect(pThis->pTimerRestore, &pThis->CritSect);
    49574959
    49584960    rc = PDMDevHlpSSMRegister(pDevIns, pDevIns->pDevReg->szDeviceName, iInstance,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette