summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2017-08-16 17:52:18 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2017-08-16 17:52:18 +0000
commit99587f273b734a255c23a302332c0a8e90acb1be (patch)
tree017918d2cf8051b3ce77ec11bd1207251812306e /sys/kern
parenta3a86822e6214507292d48303b0a53595e7f89ff (diff)
Correct the check when selecting an elevator
Coverity CID 1453358; Severity: unlikely, not user-visible ok millert, visa
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_bufq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_bufq.c b/sys/kern/kern_bufq.c
index 7ed83470e58..794fafa6b13 100644
--- a/sys/kern/kern_bufq.c
+++ b/sys/kern/kern_bufq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_bufq.c,v 1.31 2015/08/28 00:03:53 deraadt Exp $ */
+/* $OpenBSD: kern_bufq.c,v 1.32 2017/08/16 17:52:17 mikeb Exp $ */
/*
* Copyright (c) 2010 Thordur I. Bjornsson <thib@openbsd.org>
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
@@ -78,7 +78,7 @@ bufq_init(struct bufq *bq, int type)
{
u_int hi = BUFQ_HI, low = BUFQ_LOW;
- if (type > BUFQ_HOWMANY)
+ if (type >= BUFQ_HOWMANY)
panic("bufq_init: type %i unknown", type);
/*