diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 78f98fe084eb..44e9cd470543 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -124,7 +124,7 @@ static struct security_operations *secondary_ops = NULL; | |||
124 | static LIST_HEAD(superblock_security_head); | 124 | static LIST_HEAD(superblock_security_head); |
125 | static DEFINE_SPINLOCK(sb_security_lock); | 125 | static DEFINE_SPINLOCK(sb_security_lock); |
126 | 126 | ||
127 | static kmem_cache_t *sel_inode_cache; | 127 | static struct kmem_cache *sel_inode_cache; |
128 | 128 | ||
129 | /* Return security context for a given sid or just the context | 129 | /* Return security context for a given sid or just the context |
130 | length if the buffer is null or length is 0 */ | 130 | length if the buffer is null or length is 0 */ |
@@ -181,7 +181,7 @@ static int inode_alloc_security(struct inode *inode) | |||
181 | struct task_security_struct *tsec = current->security; | 181 | struct task_security_struct *tsec = current->security; |
182 | struct inode_security_struct *isec; | 182 | struct inode_security_struct *isec; |
183 | 183 | ||
184 | isec = kmem_cache_alloc(sel_inode_cache, SLAB_KERNEL); | 184 | isec = kmem_cache_alloc(sel_inode_cache, GFP_KERNEL); |
185 | if (!isec) | 185 | if (!isec) |
186 | return -ENOMEM; | 186 | return -ENOMEM; |
187 | 187 | ||