Home
last modified time | relevance | path

Searched refs:new_ra (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/net/ipv6/
Dipv6_sockglue.c62 struct ip6_ra_chain *ra, *new_ra, **rap; in ip6_ra_control() local
68 new_ra = (sel >= 0) ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; in ip6_ra_control()
69 if (sel >= 0 && !new_ra) in ip6_ra_control()
77 kfree(new_ra); in ip6_ra_control()
89 if (!new_ra) { in ip6_ra_control()
93 new_ra->sk = sk; in ip6_ra_control()
94 new_ra->sel = sel; in ip6_ra_control()
95 new_ra->next = ra; in ip6_ra_control()
96 *rap = new_ra; in ip6_ra_control()
/Linux-v6.1/net/ipv4/
Dip_sockglue.c339 struct ip_ra_chain *ra, *new_ra; in ip_ra_control() local
346 new_ra = on ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; in ip_ra_control()
347 if (on && !new_ra) in ip_ra_control()
358 kfree(new_ra); in ip_ra_control()
378 if (!new_ra) { in ip_ra_control()
382 new_ra->sk = sk; in ip_ra_control()
383 new_ra->destructor = destructor; in ip_ra_control()
385 RCU_INIT_POINTER(new_ra->next, ra); in ip_ra_control()
386 rcu_assign_pointer(*rap, new_ra); in ip_ra_control()