diff options
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r-- | net/sctp/ulpqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index aa3624d50278..25f7e4140566 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c | |||
@@ -764,7 +764,7 @@ static void sctp_ulpq_retrieve_ordered(struct sctp_ulpq *ulpq, | |||
764 | __u16 sid, csid, cssn; | 764 | __u16 sid, csid, cssn; |
765 | 765 | ||
766 | sid = event->stream; | 766 | sid = event->stream; |
767 | stream = ulpq->asoc->stream; | 767 | stream = &ulpq->asoc->stream; |
768 | 768 | ||
769 | event_list = (struct sk_buff_head *) sctp_event2skb(event)->prev; | 769 | event_list = (struct sk_buff_head *) sctp_event2skb(event)->prev; |
770 | 770 | ||
@@ -858,7 +858,7 @@ static struct sctp_ulpevent *sctp_ulpq_order(struct sctp_ulpq *ulpq, | |||
858 | /* Note: The stream ID must be verified before this routine. */ | 858 | /* Note: The stream ID must be verified before this routine. */ |
859 | sid = event->stream; | 859 | sid = event->stream; |
860 | ssn = event->ssn; | 860 | ssn = event->ssn; |
861 | stream = ulpq->asoc->stream; | 861 | stream = &ulpq->asoc->stream; |
862 | 862 | ||
863 | /* Is this the expected SSN for this stream ID? */ | 863 | /* Is this the expected SSN for this stream ID? */ |
864 | if (ssn != sctp_ssn_peek(stream, in, sid)) { | 864 | if (ssn != sctp_ssn_peek(stream, in, sid)) { |
@@ -893,7 +893,7 @@ static void sctp_ulpq_reap_ordered(struct sctp_ulpq *ulpq, __u16 sid) | |||
893 | struct sk_buff_head *lobby = &ulpq->lobby; | 893 | struct sk_buff_head *lobby = &ulpq->lobby; |
894 | __u16 csid, cssn; | 894 | __u16 csid, cssn; |
895 | 895 | ||
896 | stream = ulpq->asoc->stream; | 896 | stream = &ulpq->asoc->stream; |
897 | 897 | ||
898 | /* We are holding the chunks by stream, by SSN. */ | 898 | /* We are holding the chunks by stream, by SSN. */ |
899 | skb_queue_head_init(&temp); | 899 | skb_queue_head_init(&temp); |
@@ -958,7 +958,7 @@ void sctp_ulpq_skip(struct sctp_ulpq *ulpq, __u16 sid, __u16 ssn) | |||
958 | struct sctp_stream *stream; | 958 | struct sctp_stream *stream; |
959 | 959 | ||
960 | /* Note: The stream ID must be verified before this routine. */ | 960 | /* Note: The stream ID must be verified before this routine. */ |
961 | stream = ulpq->asoc->stream; | 961 | stream = &ulpq->asoc->stream; |
962 | 962 | ||
963 | /* Is this an old SSN? If so ignore. */ | 963 | /* Is this an old SSN? If so ignore. */ |
964 | if (SSN_lt(ssn, sctp_ssn_peek(stream, in, sid))) | 964 | if (SSN_lt(ssn, sctp_ssn_peek(stream, in, sid))) |