patch-2.1.45 linux/arch/i386/kernel/process.c
Next file: linux/arch/i386/kernel/setup.c
Previous file: linux/arch/i386/kernel/bios32.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Mon Jul 14 10:17:29 1997
- Orig file:
v2.1.44/linux/arch/i386/kernel/process.c
- Orig date:
Tue May 13 22:41:01 1997
diff -u --recursive --new-file v2.1.44/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -623,8 +623,9 @@
char * filename;
lock_kernel();
- error = getname((char *) regs.ebx, &filename);
- if (error)
+ filename = getname((char *) regs.ebx);
+ error = PTR_ERR(filename);
+ if (IS_ERR(filename))
goto out;
error = do_execve(filename, (char **) regs.ecx, (char **) regs.edx, ®s);
putname(filename);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov