From ca39a3cef934d0be38a311e8eb61b4641e0f54d1 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 13 Nov 2020 19:30:57 +0900 Subject: [PATCH] bpf: do not call log_oom() in library function --- src/shared/bpf-program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shared/bpf-program.c b/src/shared/bpf-program.c index 32881477d50..067f26d2f0b 100644 --- a/src/shared/bpf-program.c +++ b/src/shared/bpf-program.c @@ -8,7 +8,6 @@ #include "alloc-util.h" #include "bpf-program.h" #include "fd-util.h" -#include "log.h" #include "memory-util.h" #include "missing_syscall.h" #include "path-util.h" @@ -18,7 +17,7 @@ int bpf_program_new(uint32_t prog_type, BPFProgram **ret) { p = new0(BPFProgram, 1); if (!p) - return log_oom(); + return -ENOMEM; p->n_ref = 1; p->prog_type = prog_type; -- 2.47.3