Merge tag 'tif-task_work.arch-2020-12-14' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / ipc / namespace.c
index 24e7b45..7bd0766 100644 (file)
@@ -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);