summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/sctp/structs.h2
-rw-r--r--net/sctp/associola.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index a11f93790476..feada358d872 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -2075,6 +2075,8 @@ struct sctp_association {
2075 2075
2076 __u64 abandoned_unsent[SCTP_PR_INDEX(MAX) + 1]; 2076 __u64 abandoned_unsent[SCTP_PR_INDEX(MAX) + 1];
2077 __u64 abandoned_sent[SCTP_PR_INDEX(MAX) + 1]; 2077 __u64 abandoned_sent[SCTP_PR_INDEX(MAX) + 1];
2078
2079 struct rcu_head rcu;
2078}; 2080};
2079 2081
2080 2082
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index dd77ec3892b6..914750b819b2 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -435,7 +435,7 @@ static void sctp_association_destroy(struct sctp_association *asoc)
435 435
436 WARN_ON(atomic_read(&asoc->rmem_alloc)); 436 WARN_ON(atomic_read(&asoc->rmem_alloc));
437 437
438 kfree(asoc); 438 kfree_rcu(asoc, rcu);
439 SCTP_DBG_OBJCNT_DEC(assoc); 439 SCTP_DBG_OBJCNT_DEC(assoc);
440} 440}
441 441