diff options
author | pho <pho@FreeBSD.org> | 2012-06-18 07:34:38 +0000 |
---|---|---|
committer | pho <pho@FreeBSD.org> | 2012-06-18 07:34:38 +0000 |
commit | 85a3f61dca1bdf79e3879af425c06e9ee30829ad (patch) | |
tree | 27c833177cccfff2a3e52b545b9cec7acc615af7 /sys/netgraph/netflow/netflow.c | |
parent | 5958fc908c1cd2b73e214062694a231a7d8c6f53 (diff) | |
download | FreeBSD-src-85a3f61dca1bdf79e3879af425c06e9ee30829ad.zip FreeBSD-src-85a3f61dca1bdf79e3879af425c06e9ee30829ad.tar.gz |
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
Diffstat (limited to 'sys/netgraph/netflow/netflow.c')
0 files changed, 0 insertions, 0 deletions