From: Al Viro Date: Sat, 26 Apr 2008 15:36:31 +0000 (+0200) Subject: fix execve() X-Git-Tag: v2.6.26-rc1~1044^2~60 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=537166f6fa282c683663d6ac0c631b7456b5be95;p=linux-2.6-omap-h63xx.git fix execve() Arrgghhh... Sorry about that, I'd been sure I'd folded that one, but it actually got lost. Please apply - that unbreaks execve(). Signed-off-by: Al Viro Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/kernel/fork.c b/kernel/fork.c index efb618fc8ff..cb46befdd3a 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1787,7 +1787,7 @@ bad_unshare_out: int unshare_files(struct files_struct **displaced) { struct task_struct *task = current; - struct files_struct *copy; + struct files_struct *copy = NULL; int error; error = unshare_fd(CLONE_FILES, ©);