diff options
-rw-r--r-- | c/src/exec/posix/src/mutex.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/mutex.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/mutex.c b/c/src/exec/posix/src/mutex.c index e6feda5864..d2c0c6cd2c 100644 --- a/c/src/exec/posix/src/mutex.c +++ b/c/src/exec/posix/src/mutex.c @@ -506,7 +506,7 @@ int pthread_mutexattr_setprotocol( int protocol ) { - if ( !attr ) + if ( !attr || !attr->is_initialized ) return EINVAL; switch ( protocol ) { diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index e6feda5864..d2c0c6cd2c 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -506,7 +506,7 @@ int pthread_mutexattr_setprotocol( int protocol ) { - if ( !attr ) + if ( !attr || !attr->is_initialized ) return EINVAL; switch ( protocol ) { |