mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
Fix kernel panic in LinuxKPI subsystem.
Approved by: so Security: FreeBSD-EN-20:14.linuxpki
This commit is contained in:
parent
2bb318cf4a
commit
88f3ac6532
1 changed files with 3 additions and 0 deletions
|
|
@ -1385,6 +1385,9 @@ linux_file_close(struct file *file, struct thread *td)
|
|||
|
||||
KASSERT(file_count(filp) == 0, ("File refcount(%d) is not zero", file_count(filp)));
|
||||
|
||||
if (td == NULL)
|
||||
td = curthread;
|
||||
|
||||
filp->f_flags = file->f_flag;
|
||||
linux_set_current(td);
|
||||
linux_poll_wait_dequeue(filp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue