summaryrefslogtreecommitdiff
path: root/sys/arch/arm/arm/disksubr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm/arm/disksubr.c')
-rw-r--r--sys/arch/arm/arm/disksubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/disksubr.c b/sys/arch/arm/arm/disksubr.c
index 7eeca7e5921..389590526fc 100644
--- a/sys/arch/arm/arm/disksubr.c
+++ b/sys/arch/arm/arm/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.2 2004/02/23 05:07:54 drahn Exp $ */
+/* $OpenBSD: disksubr.c,v 1.3 2004/03/17 14:16:03 miod Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -82,7 +82,7 @@ readdisklabel(dev, strat, lp, osdep, spoofonly)
int dospartoff, cyl, i, ourpart = -1;
/* minimal requirements for archtypal disk label */
- if (lp->d_secsize == 0)
+ if (lp->d_secsize < DEV_BSIZE)
lp->d_secsize = DEV_BSIZE;
if (lp->d_secpercyl == 0) {
msg = "invalid geometry";