提交 50704516 编写于 作者: A Al Viro 提交者: 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: NAl Viro <viro@zeniv.linux.org.uk>
Tested-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 b1721d0d
......@@ -1787,7 +1787,7 @@ asmlinkage long sys_unshare(unsigned long unshare_flags)
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, &copy);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册