File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 52
52
53
53
static DEFINE_MUTEX (smack_ipv6_lock );
54
54
static LIST_HEAD (smk_ipv6_port_list );
55
- static struct kmem_cache * smack_inode_cache ;
56
55
struct kmem_cache * smack_rule_cache ;
57
56
int smack_enabled ;
58
57
@@ -4747,15 +4746,9 @@ static __init int smack_init(void)
4747
4746
struct cred * cred = (struct cred * ) current -> cred ;
4748
4747
struct task_smack * tsp ;
4749
4748
4750
- smack_inode_cache = KMEM_CACHE (inode_smack , 0 );
4751
- if (!smack_inode_cache )
4752
- return - ENOMEM ;
4753
-
4754
4749
smack_rule_cache = KMEM_CACHE (smack_rule , 0 );
4755
- if (!smack_rule_cache ) {
4756
- kmem_cache_destroy (smack_inode_cache );
4750
+ if (!smack_rule_cache )
4757
4751
return - ENOMEM ;
4758
- }
4759
4752
4760
4753
/*
4761
4754
* Set the security state for the initial task.
You can’t perform that action at this time.
0 commit comments