VirtualBox

Changeset 88812 in vbox


Ignore:
Timestamp:
May 1, 2021 6:11:36 PM (4 years ago)
Author:
vboxsync
Message:

NVMe,VBoxService: Corrected (soon to be) incorrect use of RTReqQueueCallV/RTReqQueueCallEx and RTREQFLAGS_NO_WAIT. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlProcess.cpp

    r84881 r88812  
    20642064
    20652065static int vgsvcGstCtrlProcessRequestExV(PVBOXSERVICECTRLPROCESS pProcess, const PVBGLR3GUESTCTRLCMDCTX pHostCtx, bool fAsync,
    2066                                          RTMSINTERVAL uTimeoutMS, PRTREQ pReq, PFNRT pfnFunction, unsigned cArgs, va_list Args)
     2066                                         RTMSINTERVAL uTimeoutMS, PFNRT pfnFunction, unsigned cArgs, va_list Args)
    20672067{
    20682068    RT_NOREF1(pHostCtx);
     
    20872087        }
    20882088
    2089         rc = RTReqQueueCallV(pProcess->hReqQueue, &pReq, uTimeoutMS, fFlags, pfnFunction, cArgs, Args);
     2089        PRTREQ hReq = NIL_RTREQ;
     2090        rc = RTReqQueueCallV(pProcess->hReqQueue, &hReq, uTimeoutMS, fFlags, pfnFunction, cArgs, Args);
     2091        RTReqRelease(hReq);
    20902092        if (RT_SUCCESS(rc))
    20912093        {
     
    21312133    va_start(va, cArgs);
    21322134    int rc = vgsvcGstCtrlProcessRequestExV(pProcess, pHostCtx, true /* fAsync */, 0 /* uTimeoutMS */,
    2133                                            NULL /* pReq */, pfnFunction, cArgs, va);
     2135                                           pfnFunction, cArgs, va);
    21342136    va_end(va);
    21352137
     
    21402142#if 0 /* unused */
    21412143static int vgsvcGstCtrlProcessRequestWait(PVBOXSERVICECTRLPROCESS pProcess, const PVBGLR3GUESTCTRLCMDCTX pHostCtx,
    2142                                           RTMSINTERVAL uTimeoutMS, PRTREQ pReq, PFNRT pfnFunction, unsigned cArgs, ...)
     2144                                          RTMSINTERVAL uTimeoutMS, PFNRT pfnFunction, unsigned cArgs, ...)
    21432145{
    21442146    AssertPtrReturn(pProcess, VERR_INVALID_POINTER);
     
    21492151    va_start(va, cArgs);
    21502152    int rc = vgsvcGstCtrlProcessRequestExV(pProcess, pHostCtx, false /* fAsync */, uTimeoutMS,
    2151                                            pReq, pfnFunction, cArgs, va);
     2153                                           pfnFunction, cArgs, va);
    21522154    va_end(va);
    21532155
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