mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
Add back a fdrop() call at the end of kern_open() that got lost in
revision 1.218. This bug caused a "struct file" reference to be leaked if VOP_ADVLOCK(), vn_start_write(), or mac_check_vnode_write() failed during the open operation. PR: kern/43739 Reported by: Arne Woerner <woerner@mediabase-gmbh.de>
This commit is contained in:
parent
f96d19da13
commit
197b023b1b
2 changed files with 2 additions and 0 deletions
|
|
@ -773,6 +773,7 @@ bad:
|
|||
fdrop(fp, td);
|
||||
} else
|
||||
FILEDESC_UNLOCK(fdp);
|
||||
fdrop(fp, td);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -773,6 +773,7 @@ bad:
|
|||
fdrop(fp, td);
|
||||
} else
|
||||
FILEDESC_UNLOCK(fdp);
|
||||
fdrop(fp, td);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue