]> git.baikalelectronics.ru Git - kernel.git/commit
EVM: fix return value check in evm_write_xattrs()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Jul 2018 13:28:40 +0000 (13:28 +0000)
committerMimi Zohar <zohar@linux.ibm.com>
Sun, 22 Jul 2018 18:49:11 +0000 (14:49 -0400)
commitf78d8f2d8bf42e46f57520e407c5c2fc775b218e
tree2e6f6197b0545d4ae84cdf35382981b0a0c0ecca
parente78e7c77e866213738c441b456daf10a2112174f
EVM: fix return value check in evm_write_xattrs()

In case of error, the function audit_log_start() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: 9b02ec7cb5b8 ("EVM: Allow runtime modification of the set of verified xattrs")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/evm/evm_secfs.c