mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 15:19:31 -04:00
fd: fix imbalanced fdp unlock in F_SETLK and F_GETLK
MFC after: 3 days
This commit is contained in:
parent
c3293b83c4
commit
747c0dd67c
1 changed files with 0 additions and 2 deletions
|
|
@ -617,7 +617,6 @@ kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
|
|||
if (foffset < 0 ||
|
||||
(flp->l_start > 0 &&
|
||||
foffset > OFF_MAX - flp->l_start)) {
|
||||
FILEDESC_SUNLOCK(fdp);
|
||||
error = EOVERFLOW;
|
||||
fdrop(fp, td);
|
||||
break;
|
||||
|
|
@ -731,7 +730,6 @@ kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
|
|||
foffset > OFF_MAX - flp->l_start) ||
|
||||
(flp->l_start < 0 &&
|
||||
foffset < OFF_MIN - flp->l_start)) {
|
||||
FILEDESC_SUNLOCK(fdp);
|
||||
error = EOVERFLOW;
|
||||
fdrop(fp, td);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue