CRED: Separate task security context from task_struct
[deliverable/linux.git] / fs / hugetlbfs / inode.c
index 08ad76c79b4955cfba8193d86674c6a9f0e798ee..870a721b8bd2724581b37a1af0df656c78fc6da2 100644 (file)
@@ -958,7 +958,7 @@ struct file *hugetlb_file_setup(const char *name, size_t size)
        if (!can_do_hugetlb_shm())
                return ERR_PTR(-EPERM);
 
-       if (!user_shm_lock(size, current->user))
+       if (!user_shm_lock(size, current->cred->user))
                return ERR_PTR(-ENOMEM);
 
        root = hugetlbfs_vfsmount->mnt_root;
@@ -998,7 +998,7 @@ out_inode:
 out_dentry:
        dput(dentry);
 out_shm_unlock:
-       user_shm_unlock(size, current->user);
+       user_shm_unlock(size, current->cred->user);
        return ERR_PTR(error);
 }
 
This page took 0.038684 seconds and 5 git commands to generate.