]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check if pthread_create(3) successfully created the thread prior to call
authorMarcelo Araujo <araujo@FreeBSD.org>
Fri, 16 Jun 2017 01:26:01 +0000 (01:26 +0000)
committerMarcelo Araujo <araujo@FreeBSD.org>
Fri, 16 Jun 2017 01:26:01 +0000 (01:26 +0000)
commitdaaa9bf1df866c03a3c5a58fe202cf98923437ac
tree10e5e5cdc36776d42bbe492163a30cdb746fa7f2
parentda150e22aca24543f1cb2b763a6db568a3a0a2b2
Check if pthread_create(3) successfully created the thread prior to call
pthread_join(3). The variable tid is not yet initialized in case
the authentication fails at early stage, that would lead pthread_join be
called with an uninitialized variable.

CID: 1375950
Reported by: Coverity, cem
Reviewed by: cem
MFC after: 3 weeks.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D11150
usr.sbin/bhyve/rfb.c