From: Zijie Pan Date: Mon, 15 Oct 2012 03:56:39 +0000 (+0000) Subject: sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter() X-Git-Tag: v3.7-rc2~33^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6e80abeab928b7c47cc1fbf53df13b4398a2bec;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter() Bug introduced by commit edfee0339e681a784ebacec7e8c2dc97dc6d2839 (sctp: check src addr when processing SACK to update transport state) Signed-off-by: Zijie Pan Signed-off-by: Nicolas Dichtel Acked-by: Vlad Yasevich Signed-off-by: David S. Miller --- diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index 57f7de8..6773d78 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c @@ -1642,8 +1642,9 @@ static int sctp_cmd_interpreter(sctp_event_t event_type, asoc->outqueue.outstanding_bytes; sackh.num_gap_ack_blocks = 0; sackh.num_dup_tsns = 0; + chunk->subh.sack_hdr = &sackh; sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_SACK, - SCTP_SACKH(&sackh)); + SCTP_CHUNK(chunk)); break; case SCTP_CMD_DISCARD_PACKET: