diff options
author | mjg <mjg@FreeBSD.org> | 2015-05-18 14:27:04 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-05-18 14:27:04 +0000 |
commit | 3dafd57ac77c8c05972132e9c4996e10cec248a8 (patch) | |
tree | 76dc64ac0d6a620893d288321b54a8e25907315d | |
parent | 82d355a2e3061fbf4b3fb94db926e4ae80e6221f (diff) | |
download | FreeBSD-src-3dafd57ac77c8c05972132e9c4996e10cec248a8.zip FreeBSD-src-3dafd57ac77c8c05972132e9c4996e10cec248a8.tar.gz |
fd: fix imbalanced fdp unlock in F_SETLK and F_GETLK
MFC after: 3 days
-rw-r--r-- | sys/kern/kern_descrip.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 329f418..7848396 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -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; |