]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sctp/inqueue.c
Merge ../linux-2.6
[linux-2.6-omap-h63xx.git] / net / sctp / inqueue.c
index 2d33922c044bb5108075de3fbff111a1207d66c7..cf0c767d43ae34835c5dd4ccca70e3629fcdd182 100644 (file)
@@ -73,8 +73,10 @@ void sctp_inq_free(struct sctp_inq *queue)
        /* If there is a packet which is currently being worked on,
         * free it as well.
         */
-       if (queue->in_progress)
+       if (queue->in_progress) {
                sctp_chunk_free(queue->in_progress);
+               queue->in_progress = NULL;
+       }
 
        if (queue->malloced) {
                /* Dump the master memory segment.  */
@@ -147,6 +149,7 @@ struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue)
                /* This is the first chunk in the packet.  */
                chunk->singleton = 1;
                ch = (sctp_chunkhdr_t *) chunk->skb->data;
+               chunk->data_accepted = 0;
        }
 
         chunk->chunk_hdr = ch;