X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fuser_namespace.h;h=b5f41d4c2eec71a3d3c786128f0f980f0b41317d;hb=f6ac436dcc4c34709bcde355f3f2254ac0a183d4;hp=bb320573bb9ee6ab216f28a138c9f1ce83ed5caf;hpb=99e1221d1a1edac316f7f8116c781f75733b1159;p=linux-2.6 diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h index bb320573bb..b5f41d4c2e 100644 --- a/include/linux/user_namespace.h +++ b/include/linux/user_namespace.h @@ -11,7 +11,7 @@ struct user_namespace { struct kref kref; - struct list_head uidhash_table[UIDHASH_SZ]; + struct hlist_head uidhash_table[UIDHASH_SZ]; struct user_struct *root_user; }; @@ -49,7 +49,7 @@ static inline struct user_namespace *copy_user_ns(int flags, if (flags & CLONE_NEWUSER) return ERR_PTR(-EINVAL); - return NULL; + return old_ns; } static inline void put_user_ns(struct user_namespace *ns)