generic_filter_pre_select(): Fix off-by-one.
authorAndre Noll <maan@systemlinux.org>
Sun, 3 Jan 2010 21:44:40 +0000 (22:44 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 3 Jan 2010 21:44:40 +0000 (22:44 +0100)
filter_common.c

index 56fbd82..a27c2d3 100644 (file)
@@ -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 */