diff options
Diffstat (limited to 'nptl/pthread_attr_setstack.c')
-rw-r--r-- | nptl/pthread_attr_setstack.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nptl/pthread_attr_setstack.c b/nptl/pthread_attr_setstack.c index 783cffe6a1..4bd314e66a 100644 --- a/nptl/pthread_attr_setstack.c +++ b/nptl/pthread_attr_setstack.c @@ -39,8 +39,9 @@ __pthread_attr_setstack (attr, stackaddr, stacksize) iattr = (struct pthread_attr *) attr; /* Catch invalid sizes. */ - if (stacksize < PTHREAD_STACK_MIN) - return EINVAL; + int ret = check_stacksize_attr (stacksize); + if (ret) + return ret; #ifdef EXTRA_PARAM_CHECKS EXTRA_PARAM_CHECKS; |