summaryrefslogtreecommitdiff
path: root/net/sctp/ulpevent.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-08-24 12:11:29 +0200
committerIngo Molnar <mingo@kernel.org>2016-08-24 12:11:29 +0200
commiteb4e841099f813c2df5fbb00ae4a9d315cb7c9dc (patch)
tree15c1f7e595cb3168035d111d628c919a61f3b14a /net/sctp/ulpevent.c
parent556b6723689694ac9134bcc36a07828168e057f4 (diff)
parentfa8410b355251fd30341662a40ac6b22d3e38468 (diff)
downloadlwn-eb4e841099f813c2df5fbb00ae4a9d315cb7c9dc.tar.gz
lwn-eb4e841099f813c2df5fbb00ae4a9d315cb7c9dc.zip
Merge tag 'v4.8-rc3' into x86/asm, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/sctp/ulpevent.c')
-rw-r--r--net/sctp/ulpevent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/ulpevent.c b/net/sctp/ulpevent.c
index 1bc4f71aaba8..d85b803da11d 100644
--- a/net/sctp/ulpevent.c
+++ b/net/sctp/ulpevent.c
@@ -702,14 +702,14 @@ struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc,
*/
sctp_ulpevent_init(event, 0, skb->len + sizeof(struct sk_buff));
- sctp_ulpevent_receive_data(event, asoc);
-
/* And hold the chunk as we need it for getting the IP headers
* later in recvmsg
*/
sctp_chunk_hold(chunk);
event->chunk = chunk;
+ sctp_ulpevent_receive_data(event, asoc);
+
event->stream = ntohs(chunk->subh.data_hdr->stream);
event->ssn = ntohs(chunk->subh.data_hdr->ssn);
event->ppid = chunk->subh.data_hdr->ppid;