]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
freedatabufs-mark-free-20051215
authorTom Keiser <tkeiser@gmail.com>
Fri, 16 Dec 2005 03:31:18 +0000 (03:31 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 16 Dec 2005 03:31:18 +0000 (03:31 +0000)
avoid an error with marking data packets free

src/rx/rx_packet.c

index e93df2edb8ac18e8abce535236b1bb4376d522fa..03be1cfe835349387cfba07b2070d0b0fe395ed1 100644 (file)
@@ -811,6 +811,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)
@@ -819,7 +820,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;