aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/sctp/inqueue.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-01-19 16:53:02 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-19 16:53:02 -0800
commitcf9e50a920be24b734fb91f19b8844f8509cb981 (patch)
treea077c31bcfe9844bcfa7ff1fe07364b5b7958622 /net/sctp/inqueue.c
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/sfrench/cifs-2.6 (diff)
parent[SCTP]: Fix sctp_rcv_ootb() to handle the last chunk of a packet correctly. (diff)
downloadwireguard-linux-cf9e50a920be24b734fb91f19b8844f8509cb981.tar.xz
wireguard-linux-cf9e50a920be24b734fb91f19b8844f8509cb981.zip
Merge master.kernel.org:/pub/scm/linux/kernel/git/sridhar/lksctp-2.6
Diffstat (limited to 'net/sctp/inqueue.c')
-rw-r--r--net/sctp/inqueue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c
index 2d33922c044b..297b8951463e 100644
--- a/net/sctp/inqueue.c
+++ b/net/sctp/inqueue.c
@@ -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. */