From: Sean Anderson Date: Tue, 27 Oct 2020 23:55:20 +0000 (-0400) Subject: log: Fix missing negation of ENOMEM X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=69529f9840f5de01a5865d2b55cd741713676956;p=u-boot.git 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 Reviewed-by: Heinrich Schuchardt --- 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; } }