diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2022-09-20 16:15:18 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2022-10-05 00:25:56 +0300 |
commit | 2d869f0b458547386fbcd8cf3004b271b7347b7f (patch) | |
tree | bf3d7b96f7e427195bc911dab0e226dbf1773be4 /Documentation/devicetree/bindings/net/brcm,amac.yaml | |
parent | 72e9be6be9c08d882f94f80c7cf1b27f0896213d (diff) | |
download | linux-2d869f0b458547386fbcd8cf3004b271b7347b7f.tar.xz |
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 <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/net/brcm,amac.yaml')
0 files changed, 0 insertions, 0 deletions