Use correct list pointer when detaching knote from list.

This commit is contained in:
jlemon 2001-02-23 19:20:21 +00:00
parent f04577cc9e
commit c9d1bd1c2c

View File

@ -2223,7 +2223,8 @@ filt_ufsdetach(struct knote *kn)
struct vnode *vp = (struct vnode *)kn->kn_hook;
mtx_lock(&vp->v_pollinfo.vpi_lock);
SLIST_REMOVE(&vp->v_pollinfo.vpi_selinfo.si_note, kn, knote, kn_link);
SLIST_REMOVE(&vp->v_pollinfo.vpi_selinfo.si_note,
kn, knote, kn_selnext);
mtx_unlock(&vp->v_pollinfo.vpi_lock);
}