diff options
Diffstat (limited to 'security/selinux/ss/avtab.c')
-rw-r--r-- | security/selinux/ss/avtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/avtab.c b/security/selinux/ss/avtab.c index d049c7acbc8b..ebb993c5c244 100644 --- a/security/selinux/ss/avtab.c +++ b/security/selinux/ss/avtab.c | |||
@@ -28,7 +28,7 @@ | |||
28 | (keyp->source_type << 9)) & \ | 28 | (keyp->source_type << 9)) & \ |
29 | AVTAB_HASH_MASK) | 29 | AVTAB_HASH_MASK) |
30 | 30 | ||
31 | static kmem_cache_t *avtab_node_cachep; | 31 | static struct kmem_cache *avtab_node_cachep; |
32 | 32 | ||
33 | static struct avtab_node* | 33 | static struct avtab_node* |
34 | avtab_insert_node(struct avtab *h, int hvalue, | 34 | avtab_insert_node(struct avtab *h, int hvalue, |
@@ -36,7 +36,7 @@ avtab_insert_node(struct avtab *h, int hvalue, | |||
36 | struct avtab_key *key, struct avtab_datum *datum) | 36 | struct avtab_key *key, struct avtab_datum *datum) |
37 | { | 37 | { |
38 | struct avtab_node * newnode; | 38 | struct avtab_node * newnode; |
39 | newnode = kmem_cache_alloc(avtab_node_cachep, SLAB_KERNEL); | 39 | newnode = kmem_cache_alloc(avtab_node_cachep, GFP_KERNEL); |
40 | if (newnode == NULL) | 40 | if (newnode == NULL) |
41 | return NULL; | 41 | return NULL; |
42 | memset(newnode, 0, sizeof(struct avtab_node)); | 42 | memset(newnode, 0, sizeof(struct avtab_node)); |