diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-11 14:20:57 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-11 14:21:42 +0100 |
commit | b4b86b825ac6bbdc727063041251d13f4353a755 (patch) | |
tree | 1d07a9b2beea1b6c73ca613f77f494b0a4689316 | |
parent | score: Add function to destroy SMP locks (diff) | |
download | rtems-b4b86b825ac6bbdc727063041251d13f4353a755.tar.bz2 |
posix: Fix NULL pointer access in pthread_create()
-rw-r--r-- | cpukit/posix/src/pthreadcreate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c index 9c4313ec30..37216bd541 100644 --- a/cpukit/posix/src/pthreadcreate.c +++ b/cpukit/posix/src/pthreadcreate.c @@ -196,8 +196,8 @@ int pthread_create( #if defined(RTEMS_SMP) #if __RTEMS_HAVE_SYS_CPUSET_H__ - the_thread->affinity.setsize = attr->affinitysetsize; - *the_thread->affinity.set = *attr->affinityset; + the_thread->affinity.setsize = the_attr->affinitysetsize; + *the_thread->affinity.set = *the_attr->affinityset; #endif #endif |