HomeFreeBSD

Check if pthread_create(3) successfully created the thread prior to call

Description

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

Details

Provenance
araujoAuthored on
Reviewer
cem
Differential Revision
D11150: Initialize pthread_t: CID 1375950
Parents
rS319994: [ar71xx] migrate all of the duplicate configuration out into a shared config…
Branches
Loading...
Tags
Loading...