summaryrefslogtreecommitdiffstats
path: root/arch/unicore32/kernel/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/unicore32/kernel/sys.c')
-rw-r--r--arch/unicore32/kernel/sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/unicore32/kernel/sys.c b/arch/unicore32/kernel/sys.c
index 5fd9af773e15..fabdee96110b 100644
--- a/arch/unicore32/kernel/sys.c
+++ b/arch/unicore32/kernel/sys.c
@@ -51,13 +51,13 @@ asmlinkage long __sys_execve(const char __user *filename,
struct pt_regs *regs)
{
int error;
- char *fn;
+ struct filename *fn;
fn = getname(filename);
error = PTR_ERR(fn);
if (IS_ERR(fn))
goto out;
- error = do_execve(fn, argv, envp, regs);
+ error = do_execve(fn->name, argv, envp, regs);
putname(fn);
out:
return error;