Changeset 0158a60 in rtems


Ignore:
Timestamp:
Apr 8, 2016, 4:28:04 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
572cb62
Parents:
d26b053
git-author:
Sebastian Huber <sebastian.huber@…> (04/08/16 04:28:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/12/16 05:36:18)
Message:

rtems: Ensure lock ownership for _Region_Get()

Location:
cpukit/rtems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/include/rtems/rtems/regionimpl.h

    rd26b053 r0158a60  
    1919
    2020#include <rtems/rtems/region.h>
     21#include <rtems/score/apimutex.h>
     22#include <rtems/score/assert.h>
    2123#include <rtems/score/heapimpl.h>
    2224#include <rtems/score/objectimpl.h>
     
    8082)
    8183{
     84  _Assert( _RTEMS_Allocator_is_owner() );
    8285  return (Region_Control *)
    8386    _Objects_Get_no_protection( &_Region_Information, id, location );
  • cpukit/rtems/src/regiondelete.c

    rd26b053 r0158a60  
    3636
    3737  _Objects_Allocator_lock();
     38  _RTEMS_Lock_allocator();
    3839
    3940    the_region = _Region_Get( id, &location );
     
    6061    }
    6162
     63  _RTEMS_Unlock_allocator();
    6264  _Objects_Allocator_unlock();
    6365
Note: See TracChangeset for help on using the changeset viewer.