From e0e309580f5eade6ef7635e7a33ef9f779bbce47 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 1 Dec 2011 15:19:09 -0800 Subject: [PATCH] kernel - Remove double unlock in elf core dumping code * Remove a double vnode unlock in the elf core dumping code. vn_unlock() ignored double unlocks before but soon won't. --- sys/kern/imgact_elf.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 243e1d7..4c84950 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -966,7 +966,6 @@ __elfN(coredump)(struct lwp *lp, int sig, struct vnode *vp, off_t limit) fp->f_flag = O_CREAT|O_WRONLY|O_NOFOLLOW; fp->f_ops = &vnode_fileops; fp->f_data = vp; - vn_unlock(vp); error = generic_elf_coredump(lp, sig, fp, limit); -- 1.7.7.2