diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-04-14 12:42:17 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-04-14 12:42:17 +0000 |
commit | 0376f10f6c035e7fa72d59fdf7b92fb4ec4f2c26 (patch) | |
tree | 4a95d8131e42c023c194b39bd9f91035810fe9d6 /sys/dev/pci/cmpci.c | |
parent | 2d21004459b6f5706b65f83b0b3632e9ccf9add6 (diff) |
make sure round_blocksize does not produce 0 after alignment
Diffstat (limited to 'sys/dev/pci/cmpci.c')
-rw-r--r-- | sys/dev/pci/cmpci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/cmpci.c b/sys/dev/pci/cmpci.c index 90126e89b0f..4be9ca505d2 100644 --- a/sys/dev/pci/cmpci.c +++ b/sys/dev/pci/cmpci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmpci.c,v 1.12 2003/09/09 03:42:19 kevlo Exp $ */ +/* $OpenBSD: cmpci.c,v 1.13 2005/04/14 12:42:16 mickey Exp $ */ /* * Copyright (c) 2000 Takuya SHIOZAKI @@ -725,7 +725,7 @@ cmpci_round_blocksize(handle, block) void *handle; int block; { - return (block & -4); + return ((block + 3) & -4); } int |