/* Clone a new ns copying an original utsname, setting refcount to 1 @old_ns: namespace to clone Return NULL on error (failure to kmalloc), new ns otherwise  */
static struct uts_namespace* clone_uts_ns(struct uts_namespace *old_ns)
/* Clone a new ns copying an original utsname, setting refcount to 1 @old_ns: namespace to clone Return NULL on error (failure to kmalloc), new ns otherwise  */
static struct uts_namespace* clone_uts_ns(struct uts_namespace *old_ns)
{
	struct uts_namespace *ns;
	ns = create_uts_ns();
	if (!ns)
		return ERR_PTR(-ENOMEM);
	down_read(&uts_sem);
	memcpy(&ns->name, &old_ns->name, sizeof(ns->name));
	up_read(&uts_sem);
	return ns;
}