Loading include/linux/user_namespace.h +2 −2 Original line number Diff line number Diff line Loading @@ -176,7 +176,7 @@ static inline struct user_namespace *to_user_ns(struct ns_common *ns) static inline struct user_namespace *get_user_ns(struct user_namespace *ns) { if (ns) refcount_inc(&ns->ns.count); ns_ref_inc(ns); return ns; } Loading @@ -186,7 +186,7 @@ extern void __put_user_ns(struct user_namespace *ns); static inline void put_user_ns(struct user_namespace *ns) { if (ns && refcount_dec_and_test(&ns->ns.count)) if (ns && ns_ref_put(ns)) __put_user_ns(ns); } Loading kernel/user_namespace.c +1 −1 Original line number Diff line number Diff line Loading @@ -225,7 +225,7 @@ static void free_user_ns(struct work_struct *work) kfree_rcu(ns, ns.ns_rcu); dec_user_namespaces(ucounts); ns = parent; } while (refcount_dec_and_test(&parent->ns.count)); } while (ns_ref_put(parent)); } void __put_user_ns(struct user_namespace *ns) Loading Loading
include/linux/user_namespace.h +2 −2 Original line number Diff line number Diff line Loading @@ -176,7 +176,7 @@ static inline struct user_namespace *to_user_ns(struct ns_common *ns) static inline struct user_namespace *get_user_ns(struct user_namespace *ns) { if (ns) refcount_inc(&ns->ns.count); ns_ref_inc(ns); return ns; } Loading @@ -186,7 +186,7 @@ extern void __put_user_ns(struct user_namespace *ns); static inline void put_user_ns(struct user_namespace *ns) { if (ns && refcount_dec_and_test(&ns->ns.count)) if (ns && ns_ref_put(ns)) __put_user_ns(ns); } Loading
kernel/user_namespace.c +1 −1 Original line number Diff line number Diff line Loading @@ -225,7 +225,7 @@ static void free_user_ns(struct work_struct *work) kfree_rcu(ns, ns.ns_rcu); dec_user_namespaces(ucounts); ns = parent; } while (refcount_dec_and_test(&parent->ns.count)); } while (ns_ref_put(parent)); } void __put_user_ns(struct user_namespace *ns) Loading