From 60add8cff8366ef4e83193d35a282762d3296ceb Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Fri, 4 Dec 2009 15:47:44 -0500 Subject: [PATCH] --- yaml --- r: 177403 b: refs/heads/master c: ec29ea544b1ce204ba3575ba05fccf3069d00c3f h: refs/heads/master i: 177401: 49ee866cc93fb3fa469c8b2d2ecf7d3c521fe8a6 177399: 9f3a5b33679e02ca6130f886d865e27ea065fb6a v: v3 --- [refs] | 2 +- trunk/security/integrity/ima/ima_iint.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 442a772f6b93..9dfae95a422a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e81e3f4dca6c54116a24aec217d2c15c6f58ada5 +refs/heads/master: ec29ea544b1ce204ba3575ba05fccf3069d00c3f diff --git a/trunk/security/integrity/ima/ima_iint.c b/trunk/security/integrity/ima/ima_iint.c index a4e2b1dac943..4a53f396d422 100644 --- a/trunk/security/integrity/ima/ima_iint.c +++ b/trunk/security/integrity/ima/ima_iint.c @@ -87,8 +87,6 @@ struct ima_iint_cache *ima_iint_insert(struct inode *inode) /** * ima_inode_alloc - allocate an iint associated with an inode * @inode: pointer to the inode - * - * Return 0 on success, 1 on failure. */ int ima_inode_alloc(struct inode *inode) { @@ -99,7 +97,7 @@ int ima_inode_alloc(struct inode *inode) iint = ima_iint_insert(inode); if (!iint) - return 1; + return -ENOMEM; return 0; }