diff options
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r-- | net/sctp/ulpqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index 331cc734e3db..b36dd9024da3 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, sp->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 |
@@ -1129,16 +1129,16 @@ void sctp_ulpq_renege(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, | |||
1129 | void sctp_ulpq_abort_pd(struct sctp_ulpq *ulpq, gfp_t gfp) | 1129 | void sctp_ulpq_abort_pd(struct sctp_ulpq *ulpq, gfp_t gfp) |
1130 | { | 1130 | { |
1131 | struct sctp_ulpevent *ev = NULL; | 1131 | struct sctp_ulpevent *ev = NULL; |
1132 | struct sock *sk; | ||
1133 | struct sctp_sock *sp; | 1132 | struct sctp_sock *sp; |
1133 | struct sock *sk; | ||
1134 | 1134 | ||
1135 | if (!ulpq->pd_mode) | 1135 | if (!ulpq->pd_mode) |
1136 | return; | 1136 | return; |
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(SCTP_PARTIAL_DELIVERY_EVENT, | 1140 | if (sctp_ulpevent_type_enabled(sp->subscribe, |
1141 | &sctp_sk(sk)->subscribe)) | 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, |
1144 | 0, 0, 0, gfp); | 1144 | 0, 0, 0, gfp); |