Changeset 2b36355b in rtems


Ignore:
Timestamp:
May 13, 2012, 2:40:10 PM (7 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
52c0db28, d5d071d
Parents:
6c2de60
Message:

PR2065: RBTree: Insert function (protected) does not enable interrupts

Save the return value from the unprotected version and return it after
enabling interrupts to their previous level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/rbtreeinsert.c

    r6c2de60 r2b36355b  
    11/*
    2  *  Copyright (c) 2010 Gedare Bloom.
     2 *  Copyright (c) 2010-2012 Gedare Bloom.
    33 *
    44 *  The license and distribution terms for this file may be
     
    149149{
    150150  ISR_Level level;
     151  RBTree_Node *return_node;
    151152
    152153  _ISR_Disable( level );
    153     return _RBTree_Insert_unprotected( tree, node );
     154  return_node = _RBTree_Insert_unprotected( tree, node );
    154155  _ISR_Enable( level );
     156  return return_node;
    155157}
Note: See TracChangeset for help on using the changeset viewer.