patch-2.1.45 linux/arch/alpha/kernel/process.c
Next file: linux/arch/alpha/kernel/traps.c
Previous file: linux/arch/alpha/kernel/osf_sys.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Sun Jul 13 21:20:10 1997
- Orig file:
v2.1.44/linux/arch/alpha/kernel/process.c
- Orig date:
Tue May 13 22:41:00 1997
diff -u --recursive --new-file v2.1.44/linux/arch/alpha/kernel/process.c linux/arch/alpha/kernel/process.c
@@ -308,8 +308,9 @@
char * filename;
lock_kernel();
- error = getname((char *) a0, &filename);
- if (error)
+ filename = getname((char *) a0);
+ error = PTR_ERR(filename);
+ if (IS_ERR(filename))
goto out;
error = do_execve(filename, (char **) a1, (char **) a2, ®s);
putname(filename);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov