summaryrefslogtreecommitdiffstats
path: root/sys/fs/pseudofs/pseudofs_vnops.c
diff options
context:
space:
mode:
authorbmah <bmah@FreeBSD.org>2007-06-07 15:04:30 +0000
committerbmah <bmah@FreeBSD.org>2007-06-07 15:04:30 +0000
commit229a009b9dd7db98333a3110b3b9f0f64a3e60f7 (patch)
tree8776cda5f6e584d1029391665cbbfbf82ea10126 /sys/fs/pseudofs/pseudofs_vnops.c
parent18d7fd2d4371f5d79c2ac1c217e458bfda61f04d (diff)
downloadFreeBSD-src-229a009b9dd7db98333a3110b3b9f0f64a3e60f7.zip
FreeBSD-src-229a009b9dd7db98333a3110b3b9f0f64a3e60f7.tar.gz
Fix off-by-one error (introduced in r1.60) that had the effect of
disallowing a read of exactly MAXPHYS bytes. Reviewed by: des, rdivacky MFC after: 1 week Sponsored by: nCircle Network Security
Diffstat (limited to 'sys/fs/pseudofs/pseudofs_vnops.c')
-rw-r--r--sys/fs/pseudofs/pseudofs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c
index da1bb20..9f7eba0 100644
--- a/sys/fs/pseudofs/pseudofs_vnops.c
+++ b/sys/fs/pseudofs/pseudofs_vnops.c
@@ -520,7 +520,7 @@ pfs_read(struct vop_read_args *va)
PRELE(proc);
PFS_RETURN (EINVAL);
}
- if (buflen > MAXPHYS) {
+ if (buflen > MAXPHYS + 1) {
if (proc != NULL)
PRELE(proc);
PFS_RETURN (EIO);
OpenPOWER on IntegriCloud