aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/run-clang-tools.py
diff options
context:
space:
mode:
authorStefan Berger <[email protected]>2022-09-20 13:15:18 +0000
committerJarkko Sakkinen <[email protected]>2022-10-04 21:25:56 +0000
commit2d869f0b458547386fbcd8cf3004b271b7347b7f (patch)
treebf3d7b96f7e427195bc911dab0e226dbf1773be4 /scripts/clang-tools/run-clang-tools.py
parentsecurity/keys: Remove inconsistent __user annotation (diff)
downloadkernel-2d869f0b458547386fbcd8cf3004b271b7347b7f.tar.gz
kernel-2d869f0b458547386fbcd8cf3004b271b7347b7f.zip
selftest: tpm2: Add Client.__del__() to close /dev/tpm* handle
The following output can bee seen when the test is executed: test_flush_context (tpm2_tests.SpaceTest) ... \ /usr/lib64/python3.6/unittest/case.py:605: ResourceWarning: \ unclosed file <_io.FileIO name='/dev/tpmrm0' mode='rb+' closefd=True> An instance of Client does not implicitly close /dev/tpm* handle, once it gets destroyed. Close the file handle in the class destructor Client.__del__(). Fixes: 6ea3dfe1e0732 ("selftests: add TPM 2.0 tests") Cc: Shuah Khan <[email protected]> Cc: [email protected] Cc: Jarkko Sakkinen <[email protected]> Signed-off-by: Stefan Berger <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions