mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
evm: fix evm_inode_init_security return code
evm_inode_init_security() should return 0, when EVM is not enabled. (Returning an error is a remnant of evm_inode_post_init_security.) Signed-off-by: Mimi Zohar <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
e1c9b23adb
commit
5a4730ba95
2 changed files with 2 additions and 2 deletions
|
|
@ -324,7 +324,7 @@ int evm_inode_init_security(struct inode *inode,
|
|||
int rc;
|
||||
|
||||
if (!evm_initialized || !evm_protected_xattr(lsm_xattr->name))
|
||||
return -EOPNOTSUPP;
|
||||
return 0;
|
||||
|
||||
xattr_data = kzalloc(sizeof(*xattr_data), GFP_NOFS);
|
||||
if (!xattr_data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue