diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 89bb5ce..2b7c4a1 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -2059,7 +2059,7 @@ static void t4_span_assigned(struct dahdi_span *span) /* We use this to make sure all the spans are assigned before * running the serial setup. */ list_for_each_entry(pos, &wc->ddev->spans, device_node) { - if (!test_bit(DAHDI_FLAGBIT_REGISTERED, &span->flags)) + if (!test_bit(DAHDI_FLAGBIT_REGISTERED, &pos->flags)) ++unassigned_spans; }