mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
linuxkpi: copy ldev into local to test and free the same pointer
Reviewed by: hselasky Sponsored by: Mellanox Technologies/NVidia Networking MFC after: 1 week
This commit is contained in:
parent
d36d681615
commit
7b0125cbec
2 changed files with 2601 additions and 2 deletions
|
|
@ -1520,8 +1520,9 @@ linux_file_close(struct file *file, struct thread *td)
|
|||
if (filp->f_vnode != NULL)
|
||||
vdrop(filp->f_vnode);
|
||||
linux_drop_fop(ldev);
|
||||
if (filp->f_cdev != NULL)
|
||||
linux_cdev_deref(filp->f_cdev);
|
||||
ldev = filp->f_cdev;
|
||||
if (ldev != NULL)
|
||||
linux_cdev_deref(ldev);
|
||||
kfree(filp);
|
||||
|
||||
return (error);
|
||||
|
|
|
|||
2598
sys/compat/linuxkpi/common/src/linux_compat.c.orig
Normal file
2598
sys/compat/linuxkpi/common/src/linux_compat.c.orig
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue