Commit a433cdf0 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

cr-exec: initialize the creds pointer to NULL

Error (arch/x86/crtools.c:83): Failed to get auxval, err: 0
==2103== Conditional jump or move depends on uninitialised value(s)
==2103==    at 0x46F073: seize_wait_task (ptrace.c:238)
==2103==    by 0x437592: cr_exec (cr-exec.c:137)
==2103==    by 0x41F6FC: main (crtools.c:789)
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 3c252f3d
......@@ -118,7 +118,7 @@ int cr_exec(int pid, char **opt)
struct parasite_ctl *ctl;
struct vm_area_list vmas;
int ret, prev_state, exit_code = -1;
struct proc_status_creds *creds;
struct proc_status_creds *creds = NULL;
if (!sys_name) {
pr_err("Syscall name required\n");
......
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