From: Al Viro Date: Sat, 26 Apr 2008 04:25:00 +0000 (+0100) Subject: Fix uninitialized 'copy' in unshare_files X-Git-Tag: v2.6.26-rc1~1049 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50704516f334d5036c09b0ecc0064598f7c5596f;p=platform%2Fkernel%2Flinux-3.10.git Fix uninitialized 'copy' in unshare_files Arrgghhh... Sorry about that, I'd been sure I'd folded that one, but it actually got lost. Please apply - that breaks execve(). Signed-off-by: Al Viro Tested-by: Ingo Molnar Signed-off-by: Linus Torvalds --- diff --git a/kernel/fork.c b/kernel/fork.c index efb618fc..cb46bef 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, ©);