[PATCH] posix: Fix NULL pointer access in pthread_create()

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Mar 10 08:50:47 UTC 2014


---
 cpukit/posix/src/pthreadcreate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c
index b148372..9c4313e 100644
--- a/cpukit/posix/src/pthreadcreate.c
+++ b/cpukit/posix/src/pthreadcreate.c
@@ -139,7 +139,7 @@ int pthread_create(
 
 #if defined(RTEMS_SMP)
 #if __RTEMS_HAVE_SYS_CPUSET_H__
-  rc = _CPU_set_Is_valid( attr->affinityset, attr->affinitysetsize );
+  rc = _CPU_set_Is_valid( the_attr->affinityset, the_attr->affinitysetsize );
   if ( rc != 0 )
     return EINVAL;
 #endif
-- 
1.7.7




More information about the devel mailing list