fpq-bulk-free-math-error-20051101

fix a math error here
This commit is contained in:
Tom Keiser 2005-11-02 05:22:39 +00:00 committed by Derrick Brashear
parent c558c12d2b
commit e2c497b036

View File

@ -2548,7 +2548,7 @@ rxi_PrepareSendPacket(register struct rx_call *call,
queue_Init(&q); queue_Init(&q);
/* Free any extra elements in the wirevec */ /* Free any extra elements in the wirevec */
for (j = MAX(2, i), nb = j - p->niovecs; j < p->niovecs; j++) { for (j = MAX(2, i), nb = p->niovecs - j; j < p->niovecs; j++) {
queue_Append(&q,RX_CBUF_TO_PACKET(p->wirevec[j].iov_base, p)); queue_Append(&q,RX_CBUF_TO_PACKET(p->wirevec[j].iov_base, p));
} }
if (nb) if (nb)