Lines Matching refs:new_cands
8747 struct bpf_cand_cache **cc = &cache[hash_cands(cands) % cache_size], *new_cands; in populate_cand_cache() local
8753 new_cands = kmemdup(cands, sizeof_cands(cands->cnt), GFP_KERNEL); in populate_cand_cache()
8754 if (!new_cands) { in populate_cand_cache()
8761 new_cands->name = kmemdup_nul(cands->name, cands->name_len, GFP_KERNEL); in populate_cand_cache()
8763 if (!new_cands->name) { in populate_cand_cache()
8764 kfree(new_cands); in populate_cand_cache()
8767 *cc = new_cands; in populate_cand_cache()
8768 return new_cands; in populate_cand_cache()
8816 struct bpf_cand_cache *new_cands; in bpf_core_add_cands() local
8845 new_cands = kmalloc(sizeof_cands(cands->cnt + 1), GFP_KERNEL); in bpf_core_add_cands()
8846 if (!new_cands) { in bpf_core_add_cands()
8851 memcpy(new_cands, cands, sizeof_cands(cands->cnt)); in bpf_core_add_cands()
8853 cands = new_cands; in bpf_core_add_cands()