diff --git a/fs/exec.c b/fs/exec.c index 42992b05a4fa..0fba5e1489b5 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1617,9 +1617,9 @@ static int do_execve_common(const char *filename, } if (capable(CAP_SYS_ADMIN)) { - if (unlikely(!strcmp(filename->name, ZYGOTE32_BIN))) + if (unlikely(!strcmp(filename, ZYGOTE32_BIN))) atomic_set(&zygote32_pid, current->pid); - else if (unlikely(!strcmp(filename->name, ZYGOTE64_BIN))) + else if (unlikely(!strcmp(filename, ZYGOTE64_BIN))) atomic_set(&zygote64_pid, current->pid); }