Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
net/sctp/bind_addr.c
··· 145 145 /* Empty the bind address list. */ 146 146 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { 147 147 list_del_rcu(&addr->list); 148 - call_rcu(&addr->rcu, sctp_local_addr_free); 148 + kfree_rcu(addr, rcu); 149 149 SCTP_DBG_OBJCNT_DEC(addr); 150 150 } 151 151 }