summaryrefslogtreecommitdiffstats
path: root/net/sctp/ulpqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r--net/sctp/ulpqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c
index b36dd9024da3..5dde92101743 100644
--- a/net/sctp/ulpqueue.c
+++ b/net/sctp/ulpqueue.c
@@ -219,7 +219,7 @@ int sctp_ulpq_tail_event(struct sctp_ulpq *ulpq, struct sctp_ulpevent *event)
219 sk_incoming_cpu_update(sk); 219 sk_incoming_cpu_update(sk);
220 } 220 }
221 /* Check if the user wishes to receive this event. */ 221 /* Check if the user wishes to receive this event. */
222 if (!sctp_ulpevent_is_enabled(event, sp->subscribe)) 222 if (!sctp_ulpevent_is_enabled(event, ulpq->asoc->subscribe))
223 goto out_free; 223 goto out_free;
224 224
225 /* If we are in partial delivery mode, post to the lobby until 225 /* If we are in partial delivery mode, post to the lobby until
@@ -1137,7 +1137,7 @@ void sctp_ulpq_abort_pd(struct sctp_ulpq *ulpq, gfp_t gfp)
1137 1137
1138 sk = ulpq->asoc->base.sk; 1138 sk = ulpq->asoc->base.sk;
1139 sp = sctp_sk(sk); 1139 sp = sctp_sk(sk);
1140 if (sctp_ulpevent_type_enabled(sp->subscribe, 1140 if (sctp_ulpevent_type_enabled(ulpq->asoc->subscribe,
1141 SCTP_PARTIAL_DELIVERY_EVENT)) 1141 SCTP_PARTIAL_DELIVERY_EVENT))
1142 ev = sctp_ulpevent_make_pdapi(ulpq->asoc, 1142 ev = sctp_ulpevent_make_pdapi(ulpq->asoc,
1143 SCTP_PARTIAL_DELIVERY_ABORTED, 1143 SCTP_PARTIAL_DELIVERY_ABORTED,