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/mvme68k | |
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/mvme68k')
-rw-r--r-- | sys/arch/mvme68k/mvme68k/vm_machdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/mvme68k/vm_machdep.c b/sys/arch/mvme68k/mvme68k/vm_machdep.c index ebfa1402ba6..465a3f5be08 100644 --- a/sys/arch/mvme68k/mvme68k/vm_machdep.c +++ b/sys/arch/mvme68k/mvme68k/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.48 2007/11/02 19:18:54 martin Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.49 2013/01/16 19:04:43 miod Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -169,14 +169,13 @@ cpu_coredump(p, vp, cred, chdr) 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; |