]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "sctp: Fix bundling of SHUTDOWN with COOKIE-ACK"
authorXin Long <lucien.xin@gmail.com>
Fri, 30 Apr 2021 20:02:59 +0000 (04:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Apr 2021 22:06:34 +0000 (15:06 -0700)
This can be reverted as shutdown and cookie_ack chunk are using the
same asoc since the last patch.

This reverts commit 55a1670c1c573ffa090e3ce0b41cc4028d1d7094.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statefuns.c

index 30cb94696843d3a359e15114a8dd6b82489f4577..e8ccc4e8b086af34769bbaabd3db63180928c429 100644 (file)
@@ -1892,7 +1892,7 @@ static enum sctp_disposition sctp_sf_do_dupcook_a(
                 */
                sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl));
                return sctp_sf_do_9_2_start_shutdown(net, ep, asoc,
-                                                    SCTP_ST_CHUNK(0), repl,
+                                                    SCTP_ST_CHUNK(0), NULL,
                                                     commands);
        } else {
                sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE,
@@ -5536,7 +5536,7 @@ enum sctp_disposition sctp_sf_do_9_2_start_shutdown(
         * in the Cumulative TSN Ack field the last sequential TSN it
         * has received from the peer.
         */
-       reply = sctp_make_shutdown(asoc, arg);
+       reply = sctp_make_shutdown(asoc, NULL);
        if (!reply)
                goto nomem;
 
@@ -6134,7 +6134,7 @@ enum sctp_disposition sctp_sf_autoclose_timer_expire(
        disposition = SCTP_DISPOSITION_CONSUME;
        if (sctp_outq_is_empty(&asoc->outqueue)) {
                disposition = sctp_sf_do_9_2_start_shutdown(net, ep, asoc, type,
-                                                           NULL, commands);
+                                                           arg, commands);
        }
 
        return disposition;