From: Matthew Dillon Date: Thu, 1 Dec 2011 23:19:09 +0000 (-0800) Subject: kernel - Remove double unlock in elf core dumping code X-Git-Tag: v3.0.0~515 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/e0e309580f5eade6ef7635e7a33ef9f779bbce47 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. --- 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);