Files
android_kernel_fxtec_sm6115/security
Wei Yongjun fef63a9bcc 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: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
2025-09-08 01:35:16 -04:00
..