Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-19511

IKsProcessingObject_fnProcessingObjectWork(): mutex mismatch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • Drivers: Other
    • None

    Description

      It looks like there is a mismatch between the 2 mutex, and/or between comments and code.

      This code was added as is on r50531.

      https://git.reactos.org/?p=reactos.git;a=blob;f=drivers/ksfilter/ks/filter.c;hb=master#l128

       131 IKsProcessingObject_fnProcessingObjectWork(
      ...
       142         /* acquire processing mutex */
       143         KeWaitForSingleObject(&This->ControlMutex, Executive, KernelMode, FALSE, NULL);
      ...
       147         /* dispatch level processing */
       148         if (KeReadStateMutex(&This->ControlMutex) == 0)
      ...
       155         /* acquire processing mutex */
       156         TimeOut.QuadPart = 0LL;
       157         Status = KeWaitForSingleObject(&This->ControlMutex, Executive, KernelMode, FALSE, &TimeOut);
      ...
       183     /* release process mutex */
       184     KeReleaseMutex(&This->ProcessingMutex, FALSE);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Serge Gautherie Serge Gautherie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: