mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Add GIANT_REQUIRED to kqueue_close(), since kqueue currently requires
Giant.
This commit is contained in:
parent
63732dce22
commit
948a4734ed
1 changed files with 2 additions and 0 deletions
|
|
@ -861,6 +861,8 @@ kqueue_close(struct file *fp, struct thread *td)
|
|||
struct knote **knp, *kn, *kn0;
|
||||
int i;
|
||||
|
||||
GIANT_REQUIRED;
|
||||
|
||||
FILEDESC_LOCK(fdp);
|
||||
for (i = 0; i < fdp->fd_knlistsize; i++) {
|
||||
knp = &SLIST_FIRST(&fdp->fd_knlist[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue