Commit e58f5daa authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

seccomp: Fix typo in collect_filters

*** CID 190178:  Null pointer dereferences  (NULL_RETURNS)
/criu/seccomp.c: 296 in collect_filters()
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent d92366ef
...@@ -287,7 +287,7 @@ static int collect_filters(struct pstree_item *item) ...@@ -287,7 +287,7 @@ static int collect_filters(struct pstree_item *item)
for (i = 0; i < item->nr_threads; i++) { for (i = 0; i < item->nr_threads; i++) {
entry = seccomp_find_entry(item->threads[i].real); entry = seccomp_find_entry(item->threads[i].real);
if (!leader) { if (!entry) {
pr_err("Can't collect filter on tid_real %d\n", pr_err("Can't collect filter on tid_real %d\n",
item->pid->real); item->pid->real);
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment