We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c011d35 commit 589ce06Copy full SHA for 589ce06
1 file changed
tools/lkl/lib/nt-host.c
@@ -133,9 +133,9 @@ static struct lkl_tls_key *tls_alloc(void (*destructor)(void *))
133
ret->key = FlsAlloc((PFLS_CALLBACK_FUNCTION)destructor);
134
if (ret->key == TLS_OUT_OF_INDEXES) {
135
free(ret);
136
- return -1;
+ return NULL;
137
}
138
- return 0;
+ return ret;
139
140
141
static void tls_free(struct lkl_tls_key *key)
0 commit comments