mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: use new in_dev_ifa iterators
Use in_dev_for_each_ifa_rcu/rtnl instead. This prevents sparse warnings once proper __rcu annotations are added. Signed-off-by: Florian Westphal <fw@strlen.de> t di# Last commands done (6 commands done): Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b8d1957236
commit
cd5a411dba
5 changed files with 29 additions and 17 deletions
|
@ -81,7 +81,7 @@ static void sctp_v4_copy_addrlist(struct list_head *addrlist,
|
|||
return;
|
||||
}
|
||||
|
||||
for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
|
||||
in_dev_for_each_ifa_rcu(ifa, in_dev) {
|
||||
/* Add the address to the local list. */
|
||||
addr = kzalloc(sizeof(*addr), GFP_ATOMIC);
|
||||
if (addr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue