]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/sctp/sm_make_chunk.c
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
[mirror_ubuntu-bionic-kernel.git] / net / sctp / sm_make_chunk.c
index 514465b03829b18c18ae3e890e0899138035bd7a..9bf575f2e8ed0888e0219a872e84018ada5064e0 100644 (file)
@@ -3594,8 +3594,8 @@ struct sctp_chunk *sctp_make_strreset_req(
                                        __u16 stream_num, __be16 *stream_list,
                                        bool out, bool in)
 {
+       __u16 stream_len = stream_num * sizeof(__u16);
        struct sctp_strreset_outreq outreq;
-       __u16 stream_len = stream_num * 2;
        struct sctp_strreset_inreq inreq;
        struct sctp_chunk *retval;
        __u16 outlen, inlen;