Clear the vnode knotes before destroying vpollinfo.
Reported and tested by: Patrick Lamaiziere <patfbsd@davenulle.org> Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
This commit is contained in:
parent
e4f0cdc73f
commit
a8b0523ae7
@ -3455,6 +3455,8 @@ vfs_msync(struct mount *mp, int flags)
|
||||
static void
|
||||
destroy_vpollinfo(struct vpollinfo *vi)
|
||||
{
|
||||
|
||||
knlist_clear(&vi->vpi_selinfo.si_note, 1);
|
||||
seldrain(&vi->vpi_selinfo);
|
||||
knlist_destroy(&vi->vpi_selinfo.si_note);
|
||||
mtx_destroy(&vi->vpi_lock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user