Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65020
b: refs/heads/master
c: efc63c4
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Sep 19, 2007
1 parent 69ac8ba commit b684fea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 019ad4a0a60b09022945273848b5a686e39a78aa
refs/heads/master: efc63c4fb0f95865907472d1c6bc0cfea9ee156b
2 changes: 2 additions & 0 deletions trunk/kernel/utsname.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ static struct uts_namespace *clone_uts_ns(struct uts_namespace *old_ns)
if (!ns)
return ERR_PTR(-ENOMEM);

down_read(&uts_sem);
memcpy(&ns->name, &old_ns->name, sizeof(ns->name));
up_read(&uts_sem);
kref_init(&ns->kref);
return ns;
}
Expand Down

0 comments on commit b684fea

Please sign in to comment.