From: Tom Keiser Date: Fri, 16 Dec 2005 03:33:08 +0000 (+0000) Subject: STABLE14-freedatabufs-mark-free-20051215 X-Git-Tag: openafs-stable-1_4_1-rc3~15 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=348aaa712864bdfe40d8cd5e0e06457b440f187b;p=packages%2Fo%2Fopenafs.git STABLE14-freedatabufs-mark-free-20051215 avoid an error with marking data packets free (cherry picked from commit 914ac9204801982e1b1b9e827a92cd519ef18bfd) --- diff --git a/src/rx/rx_packet.c b/src/rx/rx_packet.c index 4963667e4..27a7e9f56 100644 --- a/src/rx/rx_packet.c +++ b/src/rx/rx_packet.c @@ -810,6 +810,7 @@ static int rxi_FreeDataBufsToQueue(struct rx_packet *p, int first, struct rx_queue * q) { struct iovec *iov; + struct rx_packet * cb; int count = 0; if (first < 2) @@ -818,7 +819,9 @@ rxi_FreeDataBufsToQueue(struct rx_packet *p, int first, struct rx_queue * q) iov = &p->wirevec[first]; if (!iov->iov_base) osi_Panic("rxi_PacketIOVToQueue: unexpected NULL iov"); - queue_Append(q, RX_CBUF_TO_PACKET(iov->iov_base, p)); + cb = RX_CBUF_TO_PACKET(iov->iov_base, p); + RX_FPQ_MARK_FREE(cb); + queue_Append(q, cb); } p->length = 0; p->niovecs = 0;