summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/hppa/gsc/harmony.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/gsc/harmony.c b/sys/arch/hppa/gsc/harmony.c
index 6a294c6b50a..2f32b08798c 100644
--- a/sys/arch/hppa/gsc/harmony.c
+++ b/sys/arch/hppa/gsc/harmony.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: harmony.c,v 1.23 2004/02/13 21:28:19 mickey Exp $ */
+/* $OpenBSD: harmony.c,v 1.24 2005/04/16 21:54:32 mickey Exp $ */
/*
* Copyright (c) 2003 Jason L. Wright (jason@thought.net)
@@ -1012,7 +1012,7 @@ harmony_freem(void *vsc, void *ptr, int pool)
size_t
harmony_round_buffersize(void *vsc, int direction, size_t size)
{
- return (size & (size_t)(-HARMONY_BUFSIZE));
+ return ((size + HARMONY_BUFSIZE - 1) & (size_t)(-HARMONY_BUFSIZE));
}
int