Changeset 3cdda03 in rtems


Ignore:
Timestamp:
Jul 21, 2016, 10:02:17 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
059529e
Parents:
8709aa04
git-author:
Sebastian Huber <sebastian.huber@…> (07/21/16 10:02:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/21/16 13:26:47)
Message:

posix: Fix double chain extract

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/keydelete.c

    r8709aa04 r3cdda03  
    2828  _Objects_Close( &_POSIX_Keys_Information, &the_key->Object );
    2929
    30   while ( true ) {
     30  while ( !_Chain_Is_empty( &the_key->Key_value_pairs ) ) {
    3131    POSIX_Keys_Key_value_pair *key_value_pair;
    3232    ISR_lock_Context           lock_context;
     
    3434
    3535    key_value_pair = (POSIX_Keys_Key_value_pair *)
    36       _Chain_Get_unprotected( &the_key->Key_value_pairs );
    37     if ( key_value_pair == NULL ) {
    38       break;
    39     }
     36      _Chain_First( &the_key->Key_value_pairs );
    4037
    4138    the_thread = key_value_pair->thread;
Note: See TracChangeset for help on using the changeset viewer.