diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-14 12:05:10 +0200 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2012-08-09 09:49:13 -0400 |
commit | 811e4b98ff838c6c0d9cc17e37c21a12639425f0 (patch) | |
tree | 978ac0f07a63335bf9ec8cc44a2d6c6d8bd2327c /cpukit | |
parent | bsp/genmcf548x: Enable FPU in BSP startup code (diff) | |
download | rtems-811e4b98ff838c6c0d9cc17e37c21a12639425f0.tar.bz2 |
libblock: Fix purge device tree traversal
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libblock/src/bdbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c index 2c972db882..71086a2709 100644 --- a/cpukit/libblock/src/bdbuf.c +++ b/cpukit/libblock/src/bdbuf.c @@ -2935,7 +2935,8 @@ rtems_bdbuf_gather_for_purge (rtems_chain_control *purge_list, } else { - while (*prev != NULL && cur == (*prev)->avl.right) + while (*prev != NULL + && (cur == (*prev)->avl.right || (*prev)->avl.right == NULL)) { /* Up */ cur = *prev; |