Lines Matching refs:err
309 int err; in bpf_local_storage_alloc() local
311 err = mem_charge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
312 if (err) in bpf_local_storage_alloc()
313 return err; in bpf_local_storage_alloc()
318 err = -ENOMEM; in bpf_local_storage_alloc()
344 err = -EAGAIN; in bpf_local_storage_alloc()
363 return err; in bpf_local_storage_alloc()
379 int err; in bpf_local_storage_update() local
395 err = check_flags(NULL, map_flags); in bpf_local_storage_update()
396 if (err) in bpf_local_storage_update()
397 return ERR_PTR(err); in bpf_local_storage_update()
403 err = bpf_local_storage_alloc(owner, smap, selem, gfp_flags); in bpf_local_storage_update()
404 if (err) { in bpf_local_storage_update()
407 return ERR_PTR(err); in bpf_local_storage_update()
420 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
421 if (err) in bpf_local_storage_update()
422 return ERR_PTR(err); in bpf_local_storage_update()
445 err = -EAGAIN; in bpf_local_storage_update()
450 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
451 if (err) in bpf_local_storage_update()
473 err = -ENOMEM; in bpf_local_storage_update()
501 return ERR_PTR(err); in bpf_local_storage_update()