forked from Imagelibrary/rtems
2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c: Fixed NULL pointer access in case POSIX API is disabled.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
|
||||
Fixed NULL pointer access in case POSIX API is disabled.
|
||||
|
||||
2010-11-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* libmisc/monitor/mon-monitor.c: Fixed broken monitor command list.
|
||||
|
||||
@@ -72,12 +72,10 @@ void rtems_cpu_usage_report_with_plugin(
|
||||
#else
|
||||
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
|
||||
/*
|
||||
* Since the removal of ITRON, this cannot occur.
|
||||
* Since POSIX is optional, this can occur.
|
||||
*/
|
||||
#if defined(RTEMS_DEBUG)
|
||||
if ( !_Objects_Information_table[ api_index ] )
|
||||
continue;
|
||||
#endif
|
||||
if ( !_Objects_Information_table[ api_index ] )
|
||||
continue;
|
||||
|
||||
information = _Objects_Information_table[ api_index ][ 1 ];
|
||||
if ( information ) {
|
||||
@@ -106,12 +104,10 @@ void rtems_cpu_usage_report_with_plugin(
|
||||
|
||||
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
|
||||
/*
|
||||
* Since the removal of ITRON, this cannot occur.
|
||||
* Since POSIX is optional, this can occur.
|
||||
*/
|
||||
#if defined(RTEMS_DEBUG)
|
||||
if ( !_Objects_Information_table[ api_index ] )
|
||||
continue;
|
||||
#endif
|
||||
if ( !_Objects_Information_table[ api_index ] )
|
||||
continue;
|
||||
|
||||
information = _Objects_Information_table[ api_index ][ 1 ];
|
||||
if ( information ) {
|
||||
|
||||
@@ -34,12 +34,10 @@ void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
|
||||
|
||||
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
|
||||
/*
|
||||
* Since the removal of ITRON, this cannot occur.
|
||||
* Since POSIX is optional, this can occur.
|
||||
*/
|
||||
#if defined(RTEMS_DEBUG)
|
||||
if ( !_Objects_Information_table[ api_index ] )
|
||||
continue;
|
||||
#endif
|
||||
if ( !_Objects_Information_table[ api_index ] )
|
||||
continue;
|
||||
|
||||
information = _Objects_Information_table[ api_index ][ 1 ];
|
||||
if ( !information )
|
||||
|
||||
Reference in New Issue
Block a user