X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fsctp%2Finqueue.c;h=2e83405b8be7c6a0ad249350b1369577d36d7c3b;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=9bb4de3d2bff3b8cc178c791fc434ff82e0e63ee;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index 9bb4de3d2..2e83405b8 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c @@ -78,7 +78,7 @@ void sctp_inq_free(struct sctp_inq *queue) struct sctp_chunk *chunk; /* Empty the queue. */ - while ((chunk = (struct sctp_chunk *) skb_dequeue(&queue->in))) + while ((chunk = (struct sctp_chunk *) skb_dequeue(&queue->in)) != NULL) sctp_chunk_free(chunk); /* If there is a packet which is currently being worked on,