summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-21 02:10:23 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-21 02:10:23 -0400
commit5d414521663295ce25c90164f4d41a07ac846468 (patch)
tree50a3175fe7292ab775cf8031eee510aec2356de4 /net
parent0a384b226f61b310586701669b573b49cfcbf436 (diff)
downloadop-kernel-dev-5d414521663295ce25c90164f4d41a07ac846468.zip
op-kernel-dev-5d414521663295ce25c90164f4d41a07ac846468.tar.gz
sctp: Fix build failure.
Commit c182f90bc1f22ce5039b8722e45621d5f96862c2 ("SCTP: fix race between sctp_bind_addr_free() and sctp_bind_addr_conflict()") and commit 1231f0baa547a541a7481119323b7f964dda4788 ("net,rcu: convert call_rcu(sctp_local_addr_free) to kfree_rcu()"), happening in different trees, introduced a build failure. Simply make the SCTP race fix use kfree_rcu() too. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/sctp/bind_addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c
index 6338413..83e3011 100644
--- a/net/sctp/bind_addr.c
+++ b/net/sctp/bind_addr.c
@@ -145,7 +145,7 @@ static void sctp_bind_addr_clean(struct sctp_bind_addr *bp)
/* Empty the bind address list. */
list_for_each_entry_safe(addr, temp, &bp->address_list, list) {
list_del_rcu(&addr->list);
- call_rcu(&addr->rcu, sctp_local_addr_free);
+ kfree_rcu(addr, rcu);
SCTP_DBG_OBJCNT_DEC(addr);
}
}
OpenPOWER on IntegriCloud