summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-15 13:05:15 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-04-15 13:05:15 +0000
commited13c9664b994c0ddb156c715cf792f1b37289b1 (patch)
treef81d31a3cbff5f5f2034801acc087230736ec159 /sys/arch/sgi
parentbee6b17d20ce07473a4628b85fef532562745a0d (diff)
make sure aligment does not return zero block size
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/dev/mavb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/dev/mavb.c b/sys/arch/sgi/dev/mavb.c
index 95874f5d6a1..c786d3a9131 100644
--- a/sys/arch/sgi/dev/mavb.c
+++ b/sys/arch/sgi/dev/mavb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mavb.c,v 1.5 2005/01/24 20:44:37 kettenis Exp $ */
+/* $OpenBSD: mavb.c,v 1.6 2005/04/15 13:05:14 mickey Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -495,7 +495,7 @@ int
mavb_round_blocksize(void *hdl, int bs)
{
/* Block size should be a multiple of 32. */
- return bs & ~0x1f;
+ return (bs + 0x1f) & ~0x1f;
}
int