aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@ZenIV.linux.org.uk>2008-04-26 00:25:00 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-26 12:24:31 -0400
commit50704516f334d5036c09b0ecc0064598f7c5596f (patch)
tree4d3f07fcc299245c742998c77d9fab6b46ef97f3
parentb1721d0da266b4af8cb4419473b4ca36206ab200 (diff)
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 <viro@zeniv.linux.org.uk> Tested-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index efb618fc8ffe..cb46befdd3a0 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1787,7 +1787,7 @@ bad_unshare_out:
1787int unshare_files(struct files_struct **displaced) 1787int unshare_files(struct files_struct **displaced)
1788{ 1788{
1789 struct task_struct *task = current; 1789 struct task_struct *task = current;
1790 struct files_struct *copy; 1790 struct files_struct *copy = NULL;
1791 int error; 1791 int error;
1792 1792
1793 error = unshare_fd(CLONE_FILES, &copy); 1793 error = unshare_fd(CLONE_FILES, &copy);