aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ulpqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r--net/sctp/ulpqueue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c
index b22f558adc49..a698f1a509bf 100644
--- a/net/sctp/ulpqueue.c
+++ b/net/sctp/ulpqueue.c
@@ -116,12 +116,13 @@ int sctp_ulpq_tail_data(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk,
116 event = sctp_ulpq_reasm(ulpq, event); 116 event = sctp_ulpq_reasm(ulpq, event);
117 117
118 /* Do ordering if needed. */ 118 /* Do ordering if needed. */
119 if ((event) && (event->msg_flags & MSG_EOR)) { 119 if (event) {
120 /* Create a temporary list to collect chunks on. */ 120 /* Create a temporary list to collect chunks on. */
121 skb_queue_head_init(&temp); 121 skb_queue_head_init(&temp);
122 __skb_queue_tail(&temp, sctp_event2skb(event)); 122 __skb_queue_tail(&temp, sctp_event2skb(event));
123 123
124 event = sctp_ulpq_order(ulpq, event); 124 if (event->msg_flags & MSG_EOR)
125 event = sctp_ulpq_order(ulpq, event);
125 } 126 }
126 127
127 /* Send event to the ULP. 'event' is the sctp_ulpevent for 128 /* Send event to the ULP. 'event' is the sctp_ulpevent for