[haiku-commits] r34875 - haiku/trunk/src/system/kernel

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 3 Jan 2010 19:24:27 +0100 (CET)

Author: axeld
Date: 2010-01-03 19:24:27 +0100 (Sun, 03 Jan 2010)
New Revision: 34875
Changeset: http://dev.haiku-os.org/changeset/34875/haiku

Modified:
   haiku/trunk/src/system/kernel/kernel_daemon.cpp
Log:
* This should hopefully fix the broken kernel - this code relied on clearing
  the next/previous pointers. There might be more, though.


Modified: haiku/trunk/src/system/kernel/kernel_daemon.cpp
===================================================================
--- haiku/trunk/src/system/kernel/kernel_daemon.cpp     2010-01-03 17:10:32 UTC 
(rev 34874)
+++ haiku/trunk/src/system/kernel/kernel_daemon.cpp     2010-01-03 18:24:27 UTC 
(rev 34875)
@@ -182,6 +182,9 @@
        } else {
                daemon = marker.GetDoublyLinkedListLink()->next;
                fDaemons.Remove(&marker);
+
+               marker.GetDoublyLinkedListLink()->next = NULL;
+               marker.GetDoublyLinkedListLink()->previous = NULL;
        }
 
        if (daemon != NULL)


Other related posts: