Searched refs:new_cands (Results 1 – 2 of 2) sorted by relevance
9243 struct bpf_cand_cache **cc = &cache[hash_cands(cands) % cache_size], *new_cands; in populate_cand_cache() local9249 new_cands = kmemdup(cands, sizeof_cands(cands->cnt), GFP_KERNEL_ACCOUNT); in populate_cand_cache()9250 if (!new_cands) { in populate_cand_cache()9257 new_cands->name = kmemdup_nul(cands->name, cands->name_len, GFP_KERNEL_ACCOUNT); in populate_cand_cache()9259 if (!new_cands->name) { in populate_cand_cache()9260 kfree(new_cands); in populate_cand_cache()9263 *cc = new_cands; in populate_cand_cache()9264 return new_cands; in populate_cand_cache()9312 struct bpf_cand_cache *new_cands; in bpf_core_add_cands() local9341 new_cands = kmalloc(sizeof_cands(cands->cnt + 1), GFP_KERNEL_ACCOUNT); in bpf_core_add_cands()[all …]
5706 struct bpf_core_cand *new_cands, *cand; in bpf_core_add_cands() local5736 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, in bpf_core_add_cands()5738 if (!new_cands) in bpf_core_add_cands()5741 cand = &new_cands[cands->len]; in bpf_core_add_cands()5745 cands->cands = new_cands; in bpf_core_add_cands()