mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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>
This commit is contained in:
parent
b1721d0da2
commit
50704516f3
1 changed files with 1 additions and 1 deletions
|
@ -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, ©);
|
error = unshare_fd(CLONE_FILES, ©);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue