Release the correct locks and release they in the correct sequence.
authorHartmut Birr <osexpert@googlemail.com>
Sun, 4 Dec 2005 15:07:22 +0000 (15:07 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sun, 4 Dec 2005 15:07:22 +0000 (15:07 +0000)
svn path=/trunk/; revision=19870

reactos/drivers/fs/np/fsctrl.c

index 1f5ba90..a148860 100644 (file)
@@ -208,12 +208,12 @@ NpfsDisconnectPipe(PNPFS_FCB Fcb)
       KeSetEvent(&OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE);
       if (Server)
       {
       KeSetEvent(&OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE);
       if (Server)
       {
-         ExReleaseFastMutex(&Fcb->DataListLock);
         ExReleaseFastMutex(&OtherSide->DataListLock);
         ExReleaseFastMutex(&OtherSide->DataListLock);
+         ExReleaseFastMutex(&Fcb->DataListLock);
       }
       else
       {
       }
       else
       {
-        ExReleaseFastMutex(&OtherSide->DataListLock);
+         ExReleaseFastMutex(&Fcb->DataListLock);
         ExReleaseFastMutex(&OtherSide->DataListLock);
       }
       Status = STATUS_SUCCESS;
         ExReleaseFastMutex(&OtherSide->DataListLock);
       }
       Status = STATUS_SUCCESS;