diff options
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 8a08f13469c4..92e332e17391 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -2454,16 +2454,11 @@ int sctp_process_init(struct sctp_association *asoc, struct sctp_chunk *chunk, | |||
2454 | * stream sequence number shall be set to 0. | 2454 | * stream sequence number shall be set to 0. |
2455 | */ | 2455 | */ |
2456 | 2456 | ||
2457 | /* Allocate storage for the negotiated streams if it is not a temporary | 2457 | if (sctp_stream_init(asoc, gfp)) |
2458 | * association. | 2458 | goto clean_up; |
2459 | */ | ||
2460 | if (!asoc->temp) { | ||
2461 | if (sctp_stream_init(asoc, gfp)) | ||
2462 | goto clean_up; | ||
2463 | 2459 | ||
2464 | if (sctp_assoc_set_id(asoc, gfp)) | 2460 | if (!asoc->temp && sctp_assoc_set_id(asoc, gfp)) |
2465 | goto clean_up; | 2461 | goto clean_up; |
2466 | } | ||
2467 | 2462 | ||
2468 | /* ADDIP Section 4.1 ASCONF Chunk Procedures | 2463 | /* ADDIP Section 4.1 ASCONF Chunk Procedures |
2469 | * | 2464 | * |