HomeFreeBSD

In tty_makedev() the following construction:
rS237219Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

In tty_makedev() the following construction:

dev = make_dev_cred();
dev->si_drv1 = tp;

leaves a small window where the newly created device may be opened
and si_drv1 is NULL.

As this is a vary rare situation, using a lock to close the window
seems overkill. Instead just wait for the assignment of si_drv1.

Suggested by: kib
MFC after: 1 week

Details

Provenance
phoAuthored on
Parents
rS237218: MFC 236352:
Branches
Unknown
Tags
Unknown

Event Timeline