summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-01-10 23:18:40 +0000
committerniklas <niklas@openbsd.org>1997-01-10 23:18:40 +0000
commit8bbf834bc8ca396ec2ce78d4ce76972f82100e4f (patch)
tree4ee558089cc3ad750ab8bd62bc0f50833bfca97e /sys/kern/vfs_cluster.c
parentone-line fix so fdisk knows that partitions marked 0x0B are Win95/FAT32 (diff)
downloadwireguard-openbsd-8bbf834bc8ca396ec2ce78d4ce76972f82100e4f.tar.xz
wireguard-openbsd-8bbf834bc8ca396ec2ce78d4ce76972f82100e4f.zip
Correct a panic condition hitting on machines with NBPG != ffs blocksize,
plus having a large bufpages value compared to nbuf.
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index ad792afff1f..f54dc1836f5 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_cluster.c,v 1.5 1996/06/11 03:25:13 tholo Exp $ */
+/* $OpenBSD: vfs_cluster.c,v 1.6 1997/01/10 23:18:40 niklas Exp $ */
/* $NetBSD: vfs_cluster.c,v 1.12 1996/04/22 01:39:05 christos Exp $ */
/*-
@@ -349,7 +349,7 @@ cluster_rbuild(vp, filesize, bp, lbn, blkno, size, run, flags)
*/
if (tbp->b_bufsize + size > MAXBSIZE) {
#ifdef DIAGNOSTIC
- if (tbp->b_bufsize != MAXBSIZE)
+ if (tbp->b_bufsize > MAXBSIZE)
panic("cluster_rbuild: too much memory");
#endif
brelse(tbp);