From ebf8db91ac4a87b353f64fc88a0162875590e6ef Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 25 Jan 2021 12:32:48 +0300 Subject: [PATCH] helper: error pointers are gone Not just NULL pointers are gone, but also error pointers. Signed-off-by: Dan Carpenter --- smatch_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_helper.c b/smatch_helper.c index c0d58e3c..caa23a56 100644 --- a/smatch_helper.c +++ b/smatch_helper.c @@ -1075,7 +1075,7 @@ int parent_is_gone_var_sym(const char *name, struct symbol *sym) if (!name || !sym) return 0; - if (parent_is_null_var_sym(name, sym) || + if (parent_is_err_or_null_var_sym(name, sym) || parent_is_free_var_sym(name, sym)) return 1; return 0; -- 2.11.4.GIT