mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
821fd5ee20
commit
69529f9840
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue