mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Add GIANT_REQUIRED to kqueue_close(), since kqueue currently requires
Giant.
This commit is contained in:
parent
63732dce22
commit
948a4734ed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129949
@ -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 New Issue
Block a user