X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=ipc%2Fnamespace.c;h=7bd0766ddc3b13809e5ae912c49d266816475338;hb=005b2a9dc819a1265a8c765595f8f6d88d6173d9;hp=24e7b45320f724be853fe15be748229f7732beb3;hpb=ce13266d97b198934e86166491bfa4938e96508f;p=linux-2.6-microblaze.git diff --git a/ipc/namespace.c b/ipc/namespace.c index 24e7b45320f7..7bd0766ddc3b 100644 --- a/ipc/namespace.c +++ b/ipc/namespace.c @@ -51,7 +51,7 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns, goto fail_free; ns->ns.ops = &ipcns_operations; - refcount_set(&ns->count, 1); + refcount_set(&ns->ns.count, 1); ns->user_ns = get_user_ns(user_ns); ns->ucounts = ucounts; @@ -164,7 +164,7 @@ static DECLARE_WORK(free_ipc_work, free_ipc); */ void put_ipc_ns(struct ipc_namespace *ns) { - if (refcount_dec_and_lock(&ns->count, &mq_lock)) { + if (refcount_dec_and_lock(&ns->ns.count, &mq_lock)) { mq_clear_sbinfo(ns); spin_unlock(&mq_lock);