summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-01-22 01:06:29 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-01-22 01:06:29 +0000
commit7e52a2ecb17e4a58b9d5dc2cd1fa7e09341d10f2 (patch)
tree17cfc87e4b2730a4798ea81eeb0a0fc20195a6bc /sys/arch/sparc64
parentd19024eea5a3a67f907af21bc58a0ba16091ad57 (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/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/disksubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/disksubr.c b/sys/arch/sparc64/sparc64/disksubr.c
index 08f6448128a..8532661f77e 100644
--- a/sys/arch/sparc64/sparc64/disksubr.c
+++ b/sys/arch/sparc64/sparc64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.52 2008/06/29 20:05:22 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.53 2009/01/22 01:06:28 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */
/*
@@ -377,7 +377,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));
}
/*