diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-05-13 01:14:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-05-13 01:14:20 +0000 |
commit | 8541d2729a9dc2d75c99c7e7523f5e946c40a6f7 (patch) | |
tree | 945185a59fd8d25f86ee2509c2e7e11595c14e5e /sys/kern | |
parent | 67e7c82d4ecba77195ab9e0eb8382f3166ae7c13 (diff) |
initialize d_npartitions to MAXPARTITIONS always; ok krw
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 4711e347551..a42e3e3ba09 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.86 2009/05/03 06:45:58 krw Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.87 2009/05/13 01:14:19 deraadt Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -198,7 +198,7 @@ initdisklabel(struct disklabel *lp) DL_SETDSIZE(lp, MAXDISKSIZE); if (lp->d_secpercyl == 0) return ("invalid geometry"); - lp->d_npartitions = RAW_PART + 1; + lp->d_npartitions = MAXPARTITIONS; for (i = 0; i < RAW_PART; i++) { DL_SETPSIZE(&lp->d_partitions[i], 0); DL_SETPOFFSET(&lp->d_partitions[i], 0); |