summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2019-09-02 23:24:21 +0800
committerBen Hutchings <ben@decadent.org.uk>2019-11-22 15:57:26 +0000
commitdb3f75d04d3443359119e2b9c808630bd52a1c9f (patch)
tree4e52ed0937524d01d3dc9086e1286ae0d11a8548 /net
parent7ddf32d19160f2db4909077e378edcb1b006bd23 (diff)
downloadlinux-stable-db3f75d04d3443359119e2b9c808630bd52a1c9f.tar.gz
linux-stable-db3f75d04d3443359119e2b9c808630bd52a1c9f.tar.bz2
linux-stable-db3f75d04d3443359119e2b9c808630bd52a1c9f.zip
sctp: use transport pf_retrans in sctp_do_8_2_transport_strike
commit 10eb56c582c557c629271f1ee31e15e7a9b2558b upstream. Transport should use its own pf_retrans to do the error_count check, instead of asoc's. Otherwise, it's meaningless to make pf_retrans per transport. Fixes: 5aa93bcf66f4 ("sctp: Implement quick failover draft from tsvwg") Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net')
-rw-r--r--net/sctp/sm_sideeffect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index 0e4acb7723f5..5e30bdce1d21 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -505,7 +505,7 @@ static void sctp_do_8_2_transport_strike(sctp_cmd_seq_t *commands,
*/
if ((transport->state == SCTP_ACTIVE) &&
(transport->error_count < transport->pathmaxrxt) &&
- (transport->error_count > asoc->pf_retrans)) {
+ (transport->error_count > transport->pf_retrans)) {
sctp_assoc_control_transport(asoc, transport,
SCTP_TRANSPORT_PF,