summaryrefslogtreecommitdiff
path: root/net/sctp/sm_make_chunk.c
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2008-02-05 22:23:44 +0300
committerVlad Yasevich <vladislav.yasevich@hp.com>2008-02-07 05:27:39 +0300
commit5f9646c3d9f92a93b96c40e65c3d268baada842f (patch)
tree94f9e6c62bbcd6ebc7d87783612b8652054d0071 /net/sctp/sm_make_chunk.c
parenta869981423b96045c49420a6884c72528836cea8 (diff)
downloadlinux-5f9646c3d9f92a93b96c40e65c3d268baada842f.tar.xz
[SCTP]: Make sure the chunk is off the transmitted list prior to freeing.
In a few instances, we need to remove the chunk from the transmitted list prior to freeing it. This is because the free code doesn't do that any more and so we need to do it manually. Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r--net/sctp/sm_make_chunk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index 80b3c4f09e6c..e45be4e3f80d 100644
--- a/net/sctp/sm_make_chunk.c
+++ b/net/sctp/sm_make_chunk.c
@@ -3224,6 +3224,7 @@ int sctp_process_asconf_ack(struct sctp_association *asoc,
}
/* Free the cached last sent asconf chunk. */
+ list_del_init(&asconf->transmitted_list);
sctp_chunk_free(asconf);
asoc->addip_last_asconf = NULL;