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, 3 insertions, 1 deletions
diff --git a/sys/arch/arm/arm/disksubr.c b/sys/arch/arm/arm/disksubr.c
index 376078e6a71..c4d6176677f 100644
--- a/sys/arch/arm/arm/disksubr.c
+++ b/sys/arch/arm/arm/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.24 2006/10/29 00:02:35 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.25 2007/02/03 18:22:33 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -166,6 +166,8 @@ donot:
continue;
if (letoh32(dp2->dp_size) > lp->d_secperunit)
continue;
+ if (letoh32(dp2->dp_start) > lp->d_secperunit)
+ continue;
if (letoh32(dp2->dp_size) == 0)
continue;
if (letoh32(dp2->dp_start))