summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-29 13:28:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-29 13:28:46 +0000
commitb8f4c9ecdc24719f7e85766083daecd0810c493c (patch)
tree385f0394a4335c0abd5237f621cb9bb54f0da540 /sys/arch
parentaf6f57aaa3b5fbb78ae3e5d9f7a279fff6fdb473 (diff)
Use unsigned numbers for comparisons in mmmmap().
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm/arm/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/mem.c b/sys/arch/arm/arm/mem.c
index f9d19892c78..8375052531f 100644
--- a/sys/arch/arm/arm/mem.c
+++ b/sys/arch/arm/arm/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.5 2006/03/07 20:20:28 miod Exp $ */
+/* $OpenBSD: mem.c,v 1.6 2006/11/29 13:28:45 miod Exp $ */
/* $NetBSD: mem.c,v 1.11 2003/10/16 12:02:58 jdolecek Exp $ */
/*
@@ -258,7 +258,7 @@ mmmmap(dev, off, prot)
/* minor device 0 is physical memory */
- if (off >= ctob(physmem) &&
+ if ((paddr_t)off >= ctob((paddr_t)physmem) &&
suser(p, 0) != 0)
return -1;
return atop(off);