Commit 50704516 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Tested-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b1721d0d
...@@ -1787,7 +1787,7 @@ bad_unshare_out: ...@@ -1787,7 +1787,7 @@ bad_unshare_out:
int unshare_files(struct files_struct **displaced) int unshare_files(struct files_struct **displaced)
{ {
struct task_struct *task = current; struct task_struct *task = current;
struct files_struct *copy; struct files_struct *copy = NULL;
int error; int error;
error = unshare_fd(CLONE_FILES, &copy); error = unshare_fd(CLONE_FILES, &copy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment