diff options
author | bp <bp@FreeBSD.org> | 2002-04-23 13:29:23 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2002-04-23 13:29:23 +0000 |
commit | fcc023e0db9f73c6d948359d8baba37e4b5a5f8b (patch) | |
tree | 758c778f6acc4113a1eab186a3400874157862f8 /sys/netsmb/smb_trantcp.c | |
parent | 162e53dcfef2b11da812009e1267cf700c240669 (diff) | |
download | FreeBSD-src-fcc023e0db9f73c6d948359d8baba37e4b5a5f8b.zip FreeBSD-src-fcc023e0db9f73c6d948359d8baba37e4b5a5f8b.tar.gz |
Initialize thread select queue in the same way as rev 1.93 of sys_generic.c
does.
Missed and found by: alfred
Diffstat (limited to 'sys/netsmb/smb_trantcp.c')
-rw-r--r-- | sys/netsmb/smb_trantcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netsmb/smb_trantcp.c b/sys/netsmb/smb_trantcp.c index 702521b..1efd795 100644 --- a/sys/netsmb/smb_trantcp.c +++ b/sys/netsmb/smb_trantcp.c @@ -122,6 +122,9 @@ retry: td->td_flags |= TDF_SELECT; mtx_unlock_spin(&sched_lock); mtx_unlock(&sellock); + + /* XXX: Should be done when the thread is initialized. */ + TAILQ_INIT(&td->td_selq); error = nb_poll(nbp, events, td); mtx_lock(&sellock); if (error) { |