From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Sat, 17 Oct 2020 14:07:26 -0400 Subject: [PATCH v3 01/23] log: Fix missing negation of ENOMEM In-Reply-To: <20201017180749.119271-1-seanga2@gmail.com> References: <20201017180749.119271-1-seanga2@gmail.com> Message-ID: <20201017180749.119271-2-seanga2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- (no changes since v1) common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/log.c b/common/log.c index 1b10f6f180..807babbb6e 100644 --- a/common/log.c +++ b/common/log.c @@ -273,7 +273,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; } } -- 2.28.0