summaryrefslogtreecommitdiff
path: root/sys/dev/pci/sv.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-14 12:42:17 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-14 12:42:17 +0000
commit0376f10f6c035e7fa72d59fdf7b92fb4ec4f2c26 (patch)
tree4a95d8131e42c023c194b39bd9f91035810fe9d6 /sys/dev/pci/sv.c
parent2d21004459b6f5706b65f83b0b3632e9ccf9add6 (diff)
make sure round_blocksize does not produce 0 after alignment
Diffstat (limited to 'sys/dev/pci/sv.c')
-rw-r--r--sys/dev/pci/sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/sv.c b/sys/dev/pci/sv.c
index f183ffe674e..3d46f04181f 100644
--- a/sys/dev/pci/sv.c
+++ b/sys/dev/pci/sv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sv.c,v 1.16 2003/04/27 11:22:54 ho Exp $ */
+/* $OpenBSD: sv.c,v 1.17 2005/04/14 12:42:16 mickey Exp $ */
/*
* Copyright (c) 1998 Constantine Paul Sapuntzakis
@@ -813,7 +813,7 @@ sv_round_blocksize(addr, blk)
void *addr;
int blk;
{
- return (blk & -32); /* keep good alignment */
+ return ((blk + 31) & -32); /* keep good alignment */
}
int