Fixed invalid chain extract

This commit is contained in:
Thomas Doerfler
2010-01-29 14:57:10 +00:00
parent e7fb54eb05
commit 1027f1534b
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2010-01-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/bdbuf.c: Fixed invalid chain extract.
2010-01-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/include/rtems/bdbuf.h: Documentation. New states

View File

@@ -1523,8 +1523,9 @@ rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
rtems_bdbuf_group_release (bd);
/* Fall through */
case RTEMS_BDBUF_STATE_CACHED:
case RTEMS_BDBUF_STATE_EMPTY:
rtems_chain_extract (&bd->link);
/* Fall through */
case RTEMS_BDBUF_STATE_EMPTY:
return;
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY: