diff options
Diffstat (limited to 'security/integrity')
-rw-r--r-- | security/integrity/ima/ima_iint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/security/integrity/ima/ima_iint.c b/security/integrity/ima/ima_iint.c index a4e2b1dac943..4a53f396d422 100644 --- a/security/integrity/ima/ima_iint.c +++ b/security/integrity/ima/ima_iint.c | |||
@@ -87,8 +87,6 @@ out: | |||
87 | /** | 87 | /** |
88 | * ima_inode_alloc - allocate an iint associated with an inode | 88 | * ima_inode_alloc - allocate an iint associated with an inode |
89 | * @inode: pointer to the inode | 89 | * @inode: pointer to the inode |
90 | * | ||
91 | * Return 0 on success, 1 on failure. | ||
92 | */ | 90 | */ |
93 | int ima_inode_alloc(struct inode *inode) | 91 | int ima_inode_alloc(struct inode *inode) |
94 | { | 92 | { |
@@ -99,7 +97,7 @@ int ima_inode_alloc(struct inode *inode) | |||
99 | 97 | ||
100 | iint = ima_iint_insert(inode); | 98 | iint = ima_iint_insert(inode); |
101 | if (!iint) | 99 | if (!iint) |
102 | return 1; | 100 | return -ENOMEM; |
103 | return 0; | 101 | return 0; |
104 | } | 102 | } |
105 | 103 | ||