[ros-diffs] [hbirr] 19870: Release the correct locks and release they in the correct sequence.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Sun Dec 4 16:07:34 CET 2005


Release the correct locks and release they in the correct sequence.
Modified: trunk/reactos/drivers/fs/np/fsctrl.c
  _____  

Modified: trunk/reactos/drivers/fs/np/fsctrl.c
--- trunk/reactos/drivers/fs/np/fsctrl.c	2005-12-04 15:06:05 UTC
(rev 19869)
+++ trunk/reactos/drivers/fs/np/fsctrl.c	2005-12-04 15:07:22 UTC
(rev 19870)
@@ -208,13 +208,13 @@

       KeSetEvent(&OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE);
       if (Server)
       {
+	 ExReleaseFastMutex(&OtherSide->DataListLock);
          ExReleaseFastMutex(&Fcb->DataListLock);
-	 ExReleaseFastMutex(&OtherSide->DataListLock);
       }
       else
       {
+         ExReleaseFastMutex(&Fcb->DataListLock);
 	 ExReleaseFastMutex(&OtherSide->DataListLock);
-	 ExReleaseFastMutex(&OtherSide->DataListLock);
       }
       Status = STATUS_SUCCESS;
    }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051204/06dedafa/attachment.html


More information about the Ros-diffs mailing list