diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-01-16 19:04:44 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-01-16 19:04:44 +0000 |
commit | 0140c6b64701e5ae440d727eb7bd858b990a9208 (patch) | |
tree | 93a2c966fbf62854aeba4914a94d6d134f3dde29 /sys/arch/sh | |
parent | 17c02d60dce12d7dc0b161afb7e6e99dfafe6959 (diff) |
cpu_coredump() also needs to invoke vn_rdwr() without IO_NODELOCKED; only
affects a.out binaries' core dumps.
Diffstat (limited to 'sys/arch/sh')
-rw-r--r-- | sys/arch/sh/sh/vm_machdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sh/sh/vm_machdep.c b/sys/arch/sh/sh/vm_machdep.c index 52c80f28e1a..163d312e346 100644 --- a/sys/arch/sh/sh/vm_machdep.c +++ b/sys/arch/sh/sh/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.10 2008/07/14 14:00:00 miod Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.11 2013/01/16 19:04:43 miod Exp $ */ /* $NetBSD: vm_machdep.c,v 1.53 2006/08/31 16:49:21 matt Exp $ */ /* @@ -288,14 +288,13 @@ cpu_coredump(struct proc *p, struct vnode *vp, struct ucred *cred, cseg.c_size = chdr->c_cpusize; error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize, - (off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_NODELOCKED | IO_UNIT, cred, - NULL, p); + (off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_UNIT, cred, NULL, p); if (error) return error; error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core), (off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE, - IO_NODELOCKED | IO_UNIT, cred, NULL, p); + IO_UNIT, cred, NULL, p); if (error) return error; |