diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-03 19:20:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-03 19:24:31 -0400 |
commit | f5460618405eec8c3300947a499011528a115acd (patch) | |
tree | 19aba5acb6d91d5a20400292aaf1881a6b26c118 /net/sctp/sm_sideeffect.c | |
parent | 4f70ecca9c57731b4acbe5043eb22e4416bd2368 (diff) | |
parent | 0e3aef8d09a8c11e3fb83cdcb24b5bc7421b3726 (diff) |
Merge branch 'net-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vxy/lksctp-dev
Add missing linux/vmalloc.h include to net/sctp/probe.c
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_sideeffect.c')
-rw-r--r-- | net/sctp/sm_sideeffect.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index d5ae450b6f02..3b7230ef77c2 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c | |||
@@ -697,11 +697,15 @@ static void sctp_cmd_setup_t2(sctp_cmd_seq_t *cmds, | |||
697 | { | 697 | { |
698 | struct sctp_transport *t; | 698 | struct sctp_transport *t; |
699 | 699 | ||
700 | t = sctp_assoc_choose_alter_transport(asoc, | 700 | if (chunk->transport) |
701 | t = chunk->transport; | ||
702 | else { | ||
703 | t = sctp_assoc_choose_alter_transport(asoc, | ||
701 | asoc->shutdown_last_sent_to); | 704 | asoc->shutdown_last_sent_to); |
705 | chunk->transport = t; | ||
706 | } | ||
702 | asoc->shutdown_last_sent_to = t; | 707 | asoc->shutdown_last_sent_to = t; |
703 | asoc->timeouts[SCTP_EVENT_TIMEOUT_T2_SHUTDOWN] = t->rto; | 708 | asoc->timeouts[SCTP_EVENT_TIMEOUT_T2_SHUTDOWN] = t->rto; |
704 | chunk->transport = t; | ||
705 | } | 709 | } |
706 | 710 | ||
707 | /* Helper function to change the state of an association. */ | 711 | /* Helper function to change the state of an association. */ |