Subject: PR/34872 CVS commit: src/sys
To: None <mrg@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: matthew green <mrg@netbsd.org>
List: netbsd-bugs
Date: 10/21/2006 05:55:02
The following reply was made to PR kern/34872; it has been noted by GNATS.

From: matthew green <mrg@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34872 CVS commit: src/sys
Date: Sat, 21 Oct 2006 05:54:34 +0000 (UTC)

 Module Name:	src
 Committed By:	mrg
 Date:		Sat Oct 21 05:54:34 UTC 2006
 
 Modified Files:
 	src/sys/arch/alpha/alpha: machdep.c
 	src/sys/arch/amd64/amd64: machdep.c
 	src/sys/arch/amiga/amiga: machdep.c
 	src/sys/arch/arm/arm32: stubs.c
 	src/sys/arch/atari/atari: machdep.c
 	src/sys/arch/cesfic/cesfic: machdep.c
 	src/sys/arch/hp300/hp300: machdep.c
 	src/sys/arch/hp700/hp700: autoconf.c
 	src/sys/arch/i386/i386: machdep.c
 	src/sys/arch/luna68k/luna68k: machdep.c
 	src/sys/arch/mac68k/mac68k: machdep.c
 	src/sys/arch/mips/mips: mips_machdep.c
 	src/sys/arch/mvme68k/mvme68k: machdep.c
 	src/sys/arch/news68k/news68k: machdep.c
 	src/sys/arch/next68k/next68k: machdep.c
 	src/sys/arch/pc532/pc532: machdep.c
 	src/sys/arch/powerpc/powerpc: powerpc_machdep.c
 	src/sys/arch/sun2/sun2: machdep.c
 	src/sys/arch/sun3/sun3: machdep.c
 	src/sys/arch/sun3/sun3x: machdep.c
 	src/sys/arch/x68k/x68k: machdep.c
 	src/sys/arch/xen/i386: machdep.c
 	src/sys/uvm: uvm_swap.c
 
 Log Message:
 in cpu_dumpconf(), don't panic() if we can't bdevsw_lookup() the
 dumpdev.  this occurs when we try to set the dumpdev to a device
 with no driver loaded.  this fixes PR#34872.
 
 in sys_swapctl, if bdevsw_lookup() fails, set dumpdev = NODEV
 before calling cpu_dumpconf().  (this also fixes PR#34872.)
 
 XXX: cpu_dumpconf() should probably be changed to take a dumpdev
 XXX: and return an error in such cases, but that is a much more
 XXX: intrusive change.
 
 XXX2: this is only run-tested on sparc64 and compile tested on a
 XXX2: couple of platforms.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.288 -r1.289 src/sys/arch/alpha/alpha/machdep.c
 cvs rdiff -r1.42 -r1.43 src/sys/arch/amd64/amd64/machdep.c
 cvs rdiff -r1.196 -r1.197 src/sys/arch/amiga/amiga/machdep.c
 cvs rdiff -r1.15 -r1.16 src/sys/arch/arm/arm32/stubs.c
 cvs rdiff -r1.139 -r1.140 src/sys/arch/atari/atari/machdep.c
 cvs rdiff -r1.32 -r1.33 src/sys/arch/cesfic/cesfic/machdep.c
 cvs rdiff -r1.188 -r1.189 src/sys/arch/hp300/hp300/machdep.c
 cvs rdiff -r1.22 -r1.23 src/sys/arch/hp700/hp700/autoconf.c
 cvs rdiff -r1.581 -r1.582 src/sys/arch/i386/i386/machdep.c
 cvs rdiff -r1.46 -r1.47 src/sys/arch/luna68k/luna68k/machdep.c
 cvs rdiff -r1.308 -r1.309 src/sys/arch/mac68k/mac68k/machdep.c
 cvs rdiff -r1.187 -r1.188 src/sys/arch/mips/mips/mips_machdep.c
 cvs rdiff -r1.115 -r1.116 src/sys/arch/mvme68k/mvme68k/machdep.c
 cvs rdiff -r1.62 -r1.63 src/sys/arch/news68k/news68k/machdep.c
 cvs rdiff -r1.74 -r1.75 src/sys/arch/next68k/next68k/machdep.c
 cvs rdiff -r1.164 -r1.165 src/sys/arch/pc532/pc532/machdep.c
 cvs rdiff -r1.31 -r1.32 src/sys/arch/powerpc/powerpc/powerpc_machdep.c
 cvs rdiff -r1.43 -r1.44 src/sys/arch/sun2/sun2/machdep.c
 cvs rdiff -r1.177 -r1.178 src/sys/arch/sun3/sun3/machdep.c
 cvs rdiff -r1.103 -r1.104 src/sys/arch/sun3/sun3x/machdep.c
 cvs rdiff -r1.132 -r1.133 src/sys/arch/x68k/x68k/machdep.c
 cvs rdiff -r1.28 -r1.29 src/sys/arch/xen/i386/machdep.c
 cvs rdiff -r1.108 -r1.109 src/sys/uvm/uvm_swap.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.