aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/libc-tls.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/libc-tls.c')
-rw-r--r--sysdeps/generic/libc-tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/libc-tls.c b/sysdeps/generic/libc-tls.c
index 26fd6e09c9..a403e95065 100644
--- a/sysdeps/generic/libc-tls.c
+++ b/sysdeps/generic/libc-tls.c
@@ -102,7 +102,7 @@ __libc_setup_tls (size_t tcbsize, size_t tcbalign)
break;
}
- if (memsz == 0 && tcbsize == 0)
+ if (memsz == 0 && tcbsize <= TLS_INIT_TCB_SIZE)
/* We do not need a TLS block and no thread descriptor. */
return;