projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
821fd5e
)
log: Fix missing negation of ENOMEM
author
Sean Anderson
<seanga2@gmail.com>
Tue, 27 Oct 2020 23:55:20 +0000
(19:55 -0400)
committer
Tom Rini
<trini@konsulko.com>
Fri, 30 Oct 2020 14:54:38 +0000
(10:54 -0400)
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>
common/log.c
patch
|
blob
|
history
diff --git
a/common/log.c
b/common/log.c
index
9f98e9a
..
f1de922
100644
(file)
--- 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;
}
}