summaryrefslogtreecommitdiff
path: root/common/log.c
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2020-10-27 19:55:20 -0400
committerTom Rini <trini@konsulko.com>2020-10-30 10:54:38 -0400
commit69529f9840f5de01a5865d2b55cd741713676956 (patch)
tree0296293d7bc18222378cbd4fbd6aad0636c63823 /common/log.c
parent821fd5ee20a066dcf7a0e76da06a64689e0ff97c (diff)
log: Fix missing negation of ENOMEM
Errors returned should be negative. Fixes: 45fac9fc18 ("log: Correct missing free() on error in log_add_filter()") Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'common/log.c')
-rw-r--r--common/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/log.c b/common/log.c
index 9f98e9aff8..f1de922b36 100644
--- a/common/log.c
+++ b/common/log.c
@@ -294,7 +294,7 @@ int log_add_filter(const char *drv_name, enum log_category_t cat_list[],
if (file_list) {
filt->file_list = strdup(file_list);
if (!filt->file_list) {
- ret = ENOMEM;
+ ret = -ENOMEM;
goto err;
}
}