]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sctp/ulpqueue.c
sctp: define the member stream as an object instead of pointer in asoc
[karo-tx-linux.git] / net / sctp / ulpqueue.c
index aa3624d50278086633ae6cdb17936731cd10f464..25f7e4140566254cd277b708a7c4835477a0ff5f 100644 (file)
@@ -764,7 +764,7 @@ static void sctp_ulpq_retrieve_ordered(struct sctp_ulpq *ulpq,
        __u16 sid, csid, cssn;
 
        sid = event->stream;
-       stream  = ulpq->asoc->stream;
+       stream  = &ulpq->asoc->stream;
 
        event_list = (struct sk_buff_head *) sctp_event2skb(event)->prev;
 
@@ -858,7 +858,7 @@ static struct sctp_ulpevent *sctp_ulpq_order(struct sctp_ulpq *ulpq,
        /* Note: The stream ID must be verified before this routine.  */
        sid = event->stream;
        ssn = event->ssn;
-       stream  = ulpq->asoc->stream;
+       stream  = &ulpq->asoc->stream;
 
        /* Is this the expected SSN for this stream ID?  */
        if (ssn != sctp_ssn_peek(stream, in, sid)) {
@@ -893,7 +893,7 @@ static void sctp_ulpq_reap_ordered(struct sctp_ulpq *ulpq, __u16 sid)
        struct sk_buff_head *lobby = &ulpq->lobby;
        __u16 csid, cssn;
 
-       stream = ulpq->asoc->stream;
+       stream = &ulpq->asoc->stream;
 
        /* We are holding the chunks by stream, by SSN.  */
        skb_queue_head_init(&temp);
@@ -958,7 +958,7 @@ void sctp_ulpq_skip(struct sctp_ulpq *ulpq, __u16 sid, __u16 ssn)
        struct sctp_stream *stream;
 
        /* Note: The stream ID must be verified before this routine.  */
-       stream  = ulpq->asoc->stream;
+       stream  = &ulpq->asoc->stream;
 
        /* Is this an old SSN?  If so ignore. */
        if (SSN_lt(ssn, sctp_ssn_peek(stream, in, sid)))