summaryrefslogtreecommitdiffstats
path: root/net/sctp/chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/chunk.c')
-rw-r--r--net/sctp/chunk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c
index 6c761af960fd..0b203b821709 100644
--- a/net/sctp/chunk.c
+++ b/net/sctp/chunk.c
@@ -86,11 +86,10 @@ void sctp_datamsg_free(struct sctp_datamsg *msg)
86/* Final destructruction of datamsg memory. */ 86/* Final destructruction of datamsg memory. */
87static void sctp_datamsg_destroy(struct sctp_datamsg *msg) 87static void sctp_datamsg_destroy(struct sctp_datamsg *msg)
88{ 88{
89 struct sctp_association *asoc = NULL;
89 struct list_head *pos, *temp; 90 struct list_head *pos, *temp;
90 struct sctp_chunk *chunk; 91 struct sctp_chunk *chunk;
91 struct sctp_sock *sp;
92 struct sctp_ulpevent *ev; 92 struct sctp_ulpevent *ev;
93 struct sctp_association *asoc = NULL;
94 int error = 0, notify; 93 int error = 0, notify;
95 94
96 /* If we failed, we may need to notify. */ 95 /* If we failed, we may need to notify. */
@@ -108,8 +107,7 @@ static void sctp_datamsg_destroy(struct sctp_datamsg *msg)
108 else 107 else
109 error = asoc->outqueue.error; 108 error = asoc->outqueue.error;
110 109
111 sp = sctp_sk(asoc->base.sk); 110 notify = sctp_ulpevent_type_enabled(asoc->subscribe,
112 notify = sctp_ulpevent_type_enabled(sp->subscribe,
113 SCTP_SEND_FAILED); 111 SCTP_SEND_FAILED);
114 } 112 }
115 113