From 208e1b17d503ed1c4d91e6bd883e0cd0665faa6a Mon Sep 17 00:00:00 2001 From: np Date: Tue, 22 May 2018 16:23:14 +0000 Subject: [PATCH] cxgbe(4): Only valid filters are expected to have a valid tid. --- sys/dev/cxgbe/t4_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/t4_filter.c b/sys/dev/cxgbe/t4_filter.c index 4bdd211f5639..6b259290b4ce 100644 --- a/sys/dev/cxgbe/t4_filter.c +++ b/sys/dev/cxgbe/t4_filter.c @@ -316,9 +316,9 @@ get_filter(struct adapter *sc, struct t4_filter *t) mtx_lock(&sc->tids.ftid_lock); f = &sc->tids.ftid_tab[t->idx]; - MPASS(f->tid == sc->tids.ftid_base + t->idx); for (i = t->idx; i < nfilters; i++, f++) { if (f->valid) { + MPASS(f->tid == sc->tids.ftid_base + i); t->idx = i; t->l2tidx = f->l2te ? f->l2te->idx : 0; t->smtidx = f->smtidx;