From e16a8a93779d7a94cf0c716f6dab3b42651d0205 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 3 Jan 2010 22:44:40 +0100 Subject: [PATCH] generic_filter_pre_select(): Fix off-by-one. --- filter_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter_common.c b/filter_common.c index 56fbd82b..a27c2d30 100644 --- a/filter_common.c +++ b/filter_common.c @@ -303,7 +303,7 @@ void generic_filter_pre_select(struct sched *s, struct task *t) size_t iqs = btr_get_input_queue_size(fn->btrn); t->error = 0; - if (iqs <= fn->min_iqs) + if (iqs < fn->min_iqs) return; if (btr_bytes_pending(fn->btrn) > FILTER_MAX_PENDING) return; /* FIXME, should use reasonable bound on timeout */ -- 2.39.5