diff options
Diffstat (limited to 'net/sctp/stream.c')
-rw-r--r-- | net/sctp/stream.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/stream.c b/net/sctp/stream.c index f24633114dfd..2936ed17bf9e 100644 --- a/net/sctp/stream.c +++ b/net/sctp/stream.c | |||
@@ -144,8 +144,10 @@ static void sctp_stream_outq_migrate(struct sctp_stream *stream, | |||
144 | } | 144 | } |
145 | } | 145 | } |
146 | 146 | ||
147 | for (i = outcnt; i < stream->outcnt; i++) | 147 | for (i = outcnt; i < stream->outcnt; i++) { |
148 | kfree(SCTP_SO(stream, i)->ext); | 148 | kfree(SCTP_SO(stream, i)->ext); |
149 | SCTP_SO(stream, i)->ext = NULL; | ||
150 | } | ||
149 | } | 151 | } |
150 | 152 | ||
151 | static int sctp_stream_alloc_out(struct sctp_stream *stream, __u16 outcnt, | 153 | static int sctp_stream_alloc_out(struct sctp_stream *stream, __u16 outcnt, |