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

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, &regs);
 	putname(filename);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov