Use correct list pointer when detaching knote from list.

This commit is contained in:
Jonathan Lemon 2001-02-23 19:20:21 +00:00
parent 0ce14ceb84
commit 31e7122397
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72953

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);
}