[rtems commit] posix: Fix NULL pointer access in pthread_create()
Sebastian Huber
sebh at rtems.org
Mon Mar 10 12:22:50 UTC 2014
Module: rtems
Branch: master
Commit: 0c25ba681f8179e7a2626789d7add20482783587
Changeset: http://git.rtems.org/rtems/commit/?id=0c25ba681f8179e7a2626789d7add20482783587
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Mar 10 09:49:55 2014 +0100
posix: Fix NULL pointer access in pthread_create()
---
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
More information about the vc
mailing list