diff options
Diffstat (limited to 'net/sctp/ulpevent.c')
-rw-r--r-- | net/sctp/ulpevent.c | 4 |
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, | |||
702 | */ | 702 | */ |
703 | sctp_ulpevent_init(event, 0, skb->len + sizeof(struct sk_buff)); | 703 | sctp_ulpevent_init(event, 0, skb->len + sizeof(struct sk_buff)); |
704 | 704 | ||
705 | sctp_ulpevent_receive_data(event, asoc); | ||
706 | |||
707 | /* And hold the chunk as we need it for getting the IP headers | 705 | /* And hold the chunk as we need it for getting the IP headers |
708 | * later in recvmsg | 706 | * later in recvmsg |
709 | */ | 707 | */ |
710 | sctp_chunk_hold(chunk); | 708 | sctp_chunk_hold(chunk); |
711 | event->chunk = chunk; | 709 | event->chunk = chunk; |
712 | 710 | ||
711 | sctp_ulpevent_receive_data(event, asoc); | ||
712 | |||
713 | event->stream = ntohs(chunk->subh.data_hdr->stream); | 713 | event->stream = ntohs(chunk->subh.data_hdr->stream); |
714 | event->ssn = ntohs(chunk->subh.data_hdr->ssn); | 714 | event->ssn = ntohs(chunk->subh.data_hdr->ssn); |
715 | event->ppid = chunk->subh.data_hdr->ppid; | 715 | event->ppid = chunk->subh.data_hdr->ppid; |