diff options
author | Wei Yongjun <[email protected]> | 2019-02-12 07:58:31 +0000 |
---|---|---|
committer | James Morris <[email protected]> | 2019-02-12 10:59:22 -0800 |
commit | e7a44cfd639945a0dec749f896adc1d340c2a6aa (patch) | |
tree | f89795ae1dc53a5d41afe349291fb1176ea58473 /scripts/gdb/linux/symbols.py | |
parent | c67e8ec03f3fd41c0b75f5596eee92460f4957c0 (diff) |
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")
Signed-off-by: Wei Yongjun <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions