Searched refs:new_ra (Results 1 – 2 of 2) sorted by relevance
62 struct ip6_ra_chain *ra, *new_ra, **rap; in ip6_ra_control() local68 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()
339 struct ip_ra_chain *ra, *new_ra; in ip_ra_control() local346 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()