]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sctp/sm_make_chunk.c
sctp: Rework the tsn map to use generic bitmap.
[net-next-2.6.git] / net / sctp / sm_make_chunk.c
index 76726bcff3e9b4a4cc599ff3dc85edfb51e84e2a..6dd9b3ef33d0887a10d478e4555d27c25929d8b4 100644 (file)
@@ -2288,8 +2288,9 @@ int sctp_process_init(struct sctp_association *asoc, sctp_cid_t cid,
        }
 
        /* Set up the TSN tracking pieces.  */
-       sctp_tsnmap_init(&asoc->peer.tsn_map, SCTP_TSN_MAP_SIZE,
-                        asoc->peer.i.initial_tsn);
+       if (!sctp_tsnmap_init(&asoc->peer.tsn_map, SCTP_TSN_MAP_INITIAL,
+                               asoc->peer.i.initial_tsn, gfp))
+               goto clean_up;
 
        /* RFC 2960 6.5 Stream Identifier and Stream Sequence Number
         *