diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-01-22 01:06:29 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-01-22 01:06:29 +0000 |
commit | 7e52a2ecb17e4a58b9d5dc2cd1fa7e09341d10f2 (patch) | |
tree | 17cfc87e4b2730a4798ea81eeb0a0fc20195a6bc /sys/arch/sparc | |
parent | d19024eea5a3a67f907af21bc58a0ba16091ad57 (diff) |
Call checkdisklabel() for labels built from native info. This will
ensure 'c' always has the correct size as the rest of the kernel
assumes. Thus prevent dd'ing causing a SCSI out-of-bounds error.
ok miod@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/disksubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c index 3b995f567d9..b13058af679 100644 --- a/sys/arch/sparc/sparc/disksubr.c +++ b/sys/arch/sparc/sparc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.76 2008/06/29 20:05:22 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.77 2009/01/22 01:06:28 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */ /* @@ -384,7 +384,7 @@ disklabel_sun_to_bsd(struct sun_disklabel *sl, struct disklabel *lp) lp->d_checksum = 0; lp->d_checksum = dkcksum(lp); - return (NULL); + return (checkdisklabel(lp, lp)); } /* |