]>
Commit | Line | Data |
---|---|---|
28cd9a8f GKH |
1 | From 7331a3a6f59ebd5a9a93f2d0f8b4f8f97620116a Mon Sep 17 00:00:00 2001 |
2 | From: Zijie Pan <zijie.pan@6wind.com> | |
3 | Date: Mon, 15 Oct 2012 03:56:39 +0000 | |
4 | Subject: sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter() | |
5 | ||
6 | ||
7 | From: Zijie Pan <zijie.pan@6wind.com> | |
8 | ||
9 | [ Upstream commit f6e80abeab928b7c47cc1fbf53df13b4398a2bec ] | |
10 | ||
11 | Bug introduced by commit edfee0339e681a784ebacec7e8c2dc97dc6d2839 | |
12 | (sctp: check src addr when processing SACK to update transport state) | |
13 | ||
14 | Signed-off-by: Zijie Pan <zijie.pan@6wind.com> | |
15 | Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> | |
16 | Acked-by: Vlad Yasevich <vyasevich@gmail.com> | |
17 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
18 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
19 | --- | |
20 | net/sctp/sm_sideeffect.c | 3 ++- | |
21 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
22 | ||
23 | --- a/net/sctp/sm_sideeffect.c | |
24 | +++ b/net/sctp/sm_sideeffect.c | |
25 | @@ -1634,8 +1634,9 @@ static int sctp_cmd_interpreter(sctp_eve | |
26 | asoc->outqueue.outstanding_bytes; | |
27 | sackh.num_gap_ack_blocks = 0; | |
28 | sackh.num_dup_tsns = 0; | |
29 | + chunk->subh.sack_hdr = &sackh; | |
30 | sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_SACK, | |
31 | - SCTP_SACKH(&sackh)); | |
32 | + SCTP_CHUNK(chunk)); | |
33 | break; | |
34 | ||
35 | case SCTP_CMD_DISCARD_PACKET: |