VirtualBox

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


Ignore:
Timestamp:
Nov 26, 2015 4:56:51 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104377
Message:

SUPDrvGip: Fix race in TSC thread handle update and using it while thread creation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp

    r58884 r58887  
    41384138                 * See task_contributes_to_load() in include/linux/sched.h in the Linux sources.
    41394139                 */
    4140                 rc = RTThreadUserWaitNoResume(pDevExt->hTscDeltaThread, pDevExt->cMsTscDeltaTimeout);
     4140                rc = RTThreadUserWaitNoResume(hThread, pDevExt->cMsTscDeltaTimeout);
    41414141                if (   RT_FAILURE(rc)
    41424142                    && rc != VERR_TIMEOUT
    41434143                    && rc != VERR_INTERRUPTED)
    41444144                    return supdrvTscDeltaThreadButchered(pDevExt, false /* fSpinlockHeld */, "RTThreadUserWait", rc);
    4145                 RTThreadUserReset(pDevExt->hTscDeltaThread);
     4145                RTThreadUserReset(hThread);
    41464146                break;
    41474147            }
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