From ed13c9664b994c0ddb156c715cf792f1b37289b1 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 15 Apr 2005 13:05:15 +0000 Subject: make sure aligment does not return zero block size --- sys/arch/sgi/dev/mavb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sgi/dev') 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 -- cgit v1.2.3