From 30fc2d74fa0c15ec55b22d3efd41804feac006f2 Mon Sep 17 00:00:00 2001 From: Boris Popov Date: Tue, 23 Apr 2002 13:29:23 +0000 Subject: Initialize thread select queue in the same way as rev 1.93 of sys_generic.c does. Missed and found by: alfred --- sys/netsmb/smb_trantcp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys') diff --git a/sys/netsmb/smb_trantcp.c b/sys/netsmb/smb_trantcp.c index 702521b0666c7..1efd795abaebd 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) { -- cgit v1.3