diff --git a/ChangeLog b/ChangeLog
index 0a1e206d5f2..573c8305418 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1281,3 +1281,6 @@
(see email thread: http://tech.groups.yahoo.com/group/nuttx/message/530)
* drivers/mtd/at45db.c - Add a driver for the Atmel AT45DB161D 4Mbit
SPI FLASH part (untested on initial check-in).
+ * examples/ostest/prioinherit.c - Need to reinitialize globals if
+ test is ran repeatedly in a loop.
+
diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html
index afe46fc1931..69a99ddc5a1 100644
--- a/Documentation/NuttX.html
+++ b/Documentation/NuttX.html
@@ -8,7 +8,7 @@
NuttX RTOS
- Last Updated: September 11, 2010
+ Last Updated: September 28, 2010
|
@@ -1976,6 +1976,8 @@ nuttx-5.11 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
(see email thread: http://tech.groups.yahoo.com/group/nuttx/message/530)
* drivers/mtd/at45db.c - Add a driver for the Atmel AT45DB161D 4Mbit
SPI FLASH part (untested on initial check-in).
+ * examples/ostest/prioinherit.c - Need to reinitialize globals if
+ test is ran repeatedly in a loop.
pascal-2.1 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
diff --git a/examples/ostest/prioinherit.c b/examples/ostest/prioinherit.c
index bcb8d61f18b..5d59c1297f4 100644
--- a/examples/ostest/prioinherit.c
+++ b/examples/ostest/prioinherit.c
@@ -394,6 +394,10 @@ void priority_inheritance(void)
printf("priority_inheritance: Started\n");
+ g_middlestate = NOTSTARTED;
+ for (i = 0; i < NHIGHPRI_THREADS; i++) g_highstate[i] = NOTSTARTED;
+ for (i = 0; i < NLOWPRI_THREADS; i++) g_lowstate[i] = NOTSTARTED;
+
status = sched_getparam (getpid(), &sparam);
if (status != 0)
{