[ros-diffs] [cgutman] 36215: - Release the spin lock before calling NCETimeout - Should fix the crash Wax had when using the kvmnet driver

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Sep 14 08:05:47 CEST 2008


Author: cgutman
Date: Sun Sep 14 01:05:47 2008
New Revision: 36215

URL: http://svn.reactos.org/svn/reactos?rev=36215&view=rev
Log:
 - Release the spin lock before calling NCETimeout
 - Should fix the crash Wax had when using the kvmnet driver

Modified:
    branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c

Modified: branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c?rev=36215&r1=36214&r2=36215&view=diff
==============================================================================
--- branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c [iso-8859-1] Sun Sep 14 01:05:47 2008
@@ -157,7 +157,9 @@
                 NCE->EventTimer--;
                 if (NCE->EventTimer == 0) {
                     /* Call timeout handler for NCE */
+                    TcpipReleaseSpinLock(&NeighborCache[i].Lock, OldIrql);
                     NCETimeout(NCE);
+                    TcpipAcquireSpinLock(&NeighborCache[i].Lock, &OldIrql);
                 }
             }
         }



More information about the Ros-diffs mailing list