Searched refs:newp (Results 1 – 3 of 3) sorted by relevance
208 struct ip6addrlbl_entry *newp; in ip6addrlbl_alloc() local233 newp = kmalloc(sizeof(*newp), GFP_KERNEL); in ip6addrlbl_alloc()234 if (!newp) in ip6addrlbl_alloc()237 ipv6_addr_prefix(&newp->prefix, prefix, prefixlen); in ip6addrlbl_alloc()238 newp->prefixlen = prefixlen; in ip6addrlbl_alloc()239 newp->ifindex = ifindex; in ip6addrlbl_alloc()240 newp->addrtype = addrtype; in ip6addrlbl_alloc()241 newp->label = label; in ip6addrlbl_alloc()242 INIT_HLIST_NODE(&newp->list); in ip6addrlbl_alloc()244 newp->lbl_net = hold_net(net); in ip6addrlbl_alloc()[all …]
310 int gre_cisco_register(struct gre_cisco_protocol *newp) in gre_cisco_register() argument313 &gre_cisco_proto_list[newp->priority]; in gre_cisco_register()315 return (cmpxchg(proto, NULL, newp) == NULL) ? 0 : -EBUSY; in gre_cisco_register()
1330 struct xfrm_policy *newp = xfrm_policy_alloc(xp_net(old), GFP_ATOMIC); in clone_policy() local1333 if (newp) { in clone_policy()1334 newp->selector = old->selector; in clone_policy()1336 &newp->security)) { in clone_policy()1337 kfree(newp); in clone_policy()1340 newp->lft = old->lft; in clone_policy()1341 newp->curlft = old->curlft; in clone_policy()1342 newp->mark = old->mark; in clone_policy()1343 newp->action = old->action; in clone_policy()1344 newp->flags = old->flags; in clone_policy()[all …]