Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efaa1b9e authored by Wei Yongjun's avatar Wei Yongjun Committed by Sahil Sonar
Browse files

UPSTREAM: LSM: fix return value check in safesetid_init_securityfs()



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

Fixes: aeca4e2ca65c ("LSM: add SafeSetID module that gates setid calls")
Change-Id: If7830022881e6cfc65b15e465405ba1049f0c2e4
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJames Morris <james.morris@microsoft.com>
parent a1f03338
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment