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

Sebastian Huber sebh at rtems.org
Tue Mar 11 13:14:14 UTC 2014


Module:    rtems
Branch:    master
Commit:    b4b86b825ac6bbdc727063041251d13f4353a755
Changeset: http://git.rtems.org/rtems/commit/?id=b4b86b825ac6bbdc727063041251d13f4353a755

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 11 14:20:57 2014 +0100

posix: Fix NULL pointer access in pthread_create()

---

 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 9c4313e..37216bd 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
 




More information about the vc mailing list