summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2016-04-26 09:51:23 +0000
committerBob Beck <beck@cvs.openbsd.org>2016-04-26 09:51:23 +0000
commit88b42351ccc5669b0da5a0f52df704e0d3cb467f (patch)
tree1e302a590810bcd5f45189fef4281b270a852177 /sys/kern
parentd4ce77b5ee5b0717f95cf446632ba8b90e69ae98 (diff)
fix off by one in vfs_vnode_print - found by miod
ok deraadt@, krw@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 9b333e47bd9..d4579f3dfe0 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.244 2016/04/07 09:58:11 natano Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.245 2016/04/26 09:51:22 beck Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -2163,8 +2163,8 @@ vfs_vnode_print(void *v, int full,
struct vnode *vp = v;
(*pr)("tag %s(%d) type %s(%d) mount %p typedata %p\n",
- vp->v_tag > nitems(vtags)? "<unk>":vtags[vp->v_tag], vp->v_tag,
- vp->v_type > nitems(vtypes)? "<unk>":vtypes[vp->v_type],
+ vp->v_tag >= nitems(vtags)? "<unk>":vtags[vp->v_tag], vp->v_tag,
+ vp->v_type >= nitems(vtypes)? "<unk>":vtypes[vp->v_type],
vp->v_type, vp->v_mount, vp->v_mountedhere);
(*pr)("data %p usecount %d writecount %d holdcnt %d numoutput %d\n",